revolution icon indicating copy to clipboard operation
revolution copied to clipboard

"New document" button context key based on user-permissions

Open bertoost opened this issue 11 years ago • 5 comments

bertoost created Redmine issue ID 10172

When a user only has permissions for other contexts (not 'web') and then clicks on "new document" above the resource tree, then the &context_key=web parameter is added to the URL, this creates an "access denied" error

bertoost avatar Sep 04 '13 16:09 bertoost

This sounds pretty important, fundamental usability issue with multiple contexts and the top nav above the Resource Tree.

Can we Priority tag?

StevenMorgan avatar Jun 04 '14 00:06 StevenMorgan

A solution would be to use the default_context setting

rtripault avatar Jun 04 '14 06:06 rtripault

This won't solve where Users have access to multiple Contexts, but it will certainly be a step in the right direction.

Some type of "Active Context" setting would be great based around Active Resource in the Tree.

If this is challenging to achieve I suggest we patch with default_context and revisit at a later date.

StevenMorgan avatar Jun 04 '14 09:06 StevenMorgan

more general: shouldn't all the action icons from above the resource tree go down into the context sections? There is already a plus-icon for adding new documents at the context levels, so it's just adding the symlink, weblink and static as small icons there. And of course the purge/trash icon - if we move it into the context sections, it could purge only the deleted resources of that context - not of all contexts in the installation. Could be something like this:

context_proposal

By placing the icons in the context sections we can also honor different permissions per context for the other types of resources as well.

wuuti avatar Jun 30 '15 09:06 wuuti

This is quite an oldie here! I think the ultimate solution is to mirror what 3.x has done—simply remove those action icons above the contexts. In 2.8.7, each context has a simple create action button (and refresh one), just as the current 3.x version does, and the contextual menu has access to all relevant actions otherwise.

smg6511 avatar Apr 20 '24 04:04 smg6511