//com_content - Articles
$canCreate = $user->authorise('core.create', 'com_content.category.'.$item->catid);
$canEdit = $user->authorise('core.edit', 'com_content.article.'.$item->id);
$canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $userId || $item->checked_out == 0;
$canEditOwn = $user->authorise('core.edit.own', 'com_content.article.'.$item->id) && $item->created_by == $userId;
$canChange = $user->authorise('core.edit.state', 'com_content.article.'.$item->id) && $canCheckin;
//com_menus - Menu Items
$canCreate = $user->authorise('core.create', 'com_menus');
$canEdit = $user->authorise('core.edit', 'com_menus');
$canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out==$user->get('id')|| $item->checked_out==0;
$canChange = $user->authorise('core.edit.state', 'com_menus') && $canCheckin;
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-general/-/-pdbYG4lDYEJ.
To post to this group, send an email to joomla-de...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-gene...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-general?hl=en-GB.
That could well make sense, but it sounds like a change from what we
have now. I thought you said that currently we don't check for
com_menus permissions before assigning modules to menu items. If that
is true, what you suggest, though logical, is a change from the
current 2.5 behavior. If so, that is not necessarily bad, but it just
requires more thought and discussion. Mark
On Fri, May 25, 2012 at 9:40 AM, Richard <rm0...@uah.edu> wrote:
> What I am suggesting is consistent with how things currently are. The
> ability to edit a module or change its state (changing the title, position,
> publishing it, etc) should be based on com_module permissions. In addition,
> once you have permission to edit a module, you should also require
> permission to edit a menu item before being allowed to assign a module to
> it. You are right that you can look at assigning modules to menu items from
> both ways, the problem is, we need to secure them from both ways. You
> shouldn't be able to edit a module unless you have access to that module.
> You also shouldn't be allowed to assign that module to a menu item unless
> you have access to that menu item.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Joomla! General Development" group.
> To view this discussion on the web, visit
> https://groups.google.com/d/msg/joomla-dev-general/-/tqynwlx33H4J.
> To post to this group, send an email to joomla-dev-general@googlegroups.com.
> To unsubscribe from this group, send email to
> joomla-dev-general+unsub...@googlegroups.com.
How is it inconsistent and what is it inconsistent with?
We already check permissions at the component level for users to be able to assign modules to menu items. In version 2.5, if a user has component level permissions for com_modules but not com_menus, they can assign modules to menu items. Your proposal would extend the component-level checks down to individual modules and menu items. To me, it would be inconsistent to have the item level permission checks be different from the component level checks (in this case requiring both menu item and module permissions to assign module to menu items). The component level checks only checks module permissions. The proposed item level checks would check module and menu item permissions.
Does that make sense? I'm not trying to be difficult or generate an argument here. I just want to make sure we are doing this in a way that makes sense and won't cause other issues. It is quite possible that I am missing something here or not explaining it as clearly as I could. I also want to emphasize that I think extending the permission checks in this way would be a good feature, so i don't want to discourage you or make it overly difficult.
Perhaps we should do a voice meeting if we can't sort it out on list? I am traveling for the next 2 days but them am home. Thanks. Mark
On Sun, May 27, 2012 at 6:59 AM, Richard <rm0...@uah.edu> wrote:
> How is it inconsistent and what is it inconsistent with? The module/menu
> item relationship is unique so there's nothing else to compare it to. How is
> it confusing?
>
> Unnecessary? If you think that then you must think that it's alright for a
> user to break the entire website simply by assigning modules. I'd be more
> inclined to agree with you if you could at least give me some alternative as
> I previously asked other than "if you can access modules, you can assign
> them anywhere and break the entire website". That's completely unacceptable.
> If you can't provide an alternative, I'll have no choice but to implement
> what I've suggested.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Joomla! General Development" group.
> To view this discussion on the web, visit
> https://groups.google.com/d/msg/joomla-dev-general/-/gkXsITx4wxYJ.
> To post to this group, send an email to joomla-dev-general@googlegroups.com.
> To unsubscribe from this group, send email to
Mark,
Thanks for the reply. Regarding the "All Pages" menu item assignment, that is one detail that Jim and I have talked about in our meetings. It definitely needs some thought. One issue would be, if a superuser assigns a module to all pages, what should a regular user with edit access be able to do?
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-general/-/u8xaRUkJXRgJ.
To post to this group, send an email to joomla-de...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-gene...@googlegroups.com.
From my review of the code, the "all pages" feature looks to be just a bit of client side script that checks all the boxes. That would still work but it would be more like "all pages that I have access to" and only for super users or users with universal access would it really be "all pages".
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-general/-/rO9LYarhKO8J.
I see. Then wouldn't it make sense to only display the "all" options for super users that necessarily will have access to assign modules to any and all future items?
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-general/-/G6gMb_D_YmQJ.
No, I think it does make sense to only show the ALL and ALL EXCEPT options to users with permission for ALL menu items. However, the "super user" concept is a bit trickier than it might first appear. We do have super users, defined as any user with core.admin permissions. However, other users can also have full privileges for com_menus, so we can't really restrict it only to super users.Unfortunately, the ACL as it currently stands is not great at finding all assets that a user has a given privilege for. In this case, I guess we could just loop through all of the menu items and test that a user has edit permission for them all. Then we would show the ALL and ALL EXCEPT options for super users and any user with edit permission for all menu items. As long as a site has a reasonable number of menu items, it shouldn't be too slow.So I think using the core.edit permission for menu items to determine whether a user can assign a module to a menu item makes sense.Does anyone else have any opinion about this? It is a change from what we have now.Mark
On Thu, Jun 14, 2012 at 8:53 AM, Richard <rm0...@uah.edu> wrote:
I see. Then wouldn't it make sense to only display the "all" options for super users that necessarily will have access to assign modules to any and all future items?To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-general/-/G6gMb_D_YmQJ.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To post to this group, send an email to joomla-dev-general@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-general+unsub...@googlegroups.com.
HI All,
Blog sites for grannies? Actually, in some respects that’s exactly what we do in a lot of sites that are
doing. I’ve just completed a Joomla site for a school. The teachers (there are about 10 or so) will have
access to their own section of the site. Some are fairly IT literate and comfortable learning the new
system, others are much more nervous about breaking the site and consequently won’t go clicking
buttons, but certainly they would come under the same skill classification as ‘Grannies’.
Joomla is a great blogging tool when other more powerful functionality is required in the same site.
I also think that these discussions are useful I guiding where contributors choose to put their
development efforts to help make the whole platform and CMS better.
On the default module assignment issue, I would suggest that the best way to handle it would be as an
additional parameter in the global config. That way us developers could choose the best assignment
for each project…
If the ability to assign the default page could easily be added to the site-wide ACL then that would also
make sense.
JMHO
Cheers
Keith
--
You received this message because you are subscribed to the Google Groups "Joomla! General
Development" group.
To view this discussion on the web, visit
https://groups.google.com/d/msg/joomla-dev-general/-
/vbT4dmkf2r4J.
To post to this group, send an email to joomla-de...@googlegroups.com.
To unsubscribe from this group, send email to
To unsubscribe from this group, send email to joomla-dev-gene...@googlegroups.com.
Hi Brian, and everyone,
There is clearly no single preferred option by the people replying here or a mass call for this behaviour (present since the beginning of joomla) to change - dont think I have heard anyone asking for this before in over 5 years (but I could be wrong)
Quite possibly, I haven’t been heavily involved in Joomla for that long…
I would be very against this being a configurable option as it would mean that the default expected behaviour woud not be the same on all sites and would create problems with documentation (both on joomla and extensions).
I have to say that I disagree with your reasoning here. As a community, we shouldn’t ever say that something shouldn’t be changed because ‘it’s always been done like that’.
I also don’t understand how changing a default behaviour in the core is going to affect documentation for 3rd party extensions in this case (of course there are many cases where it would). Surely what we’re talking about here are two fairly isolated options, what is the default option when you create a new module in the module manager (I wouldn’t envisage this affecting the auto created modules as part of the installation process) and managing the ability to change the default menu item for the site. If I’ve missed something in the ramifications please tell me, I’m still learning here :o)
Cheers
Keith
.
> To unsubscribe from this group, send email to
What is the status of the pull request in the tracker issue? Is it up to date? Does it need tweaking to add the ACL we discussed?
So "where we stand" is ... waiting to see code and looking at extremely extenisve testing given the performance impact of corruption in the assets table. Also this would need to be incorporated into migration scripts so your team shouldbe working with the people working on that as well.