Closed (fixed)
Project:
Views Ajax Get
Version:
7.x-1.1
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Nov 2014 at 22:41 UTC
Updated:
4 Dec 2014 at 10:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
steveworley commentedHere is my proposed permission.
Thanks,
Steve
Comment #2
steveworley commentedComment #3
leon kessler commentedGood spot! Thanks.
I think we probably want a more specific permission than 'administer site configuration'.
It could be 'administer views', or maybe we should define our own permission.
Comment #4
leon kessler commentedComment #5
steveworley commentedYeah I wasn't too happy with 'administer site configuration', can't believe I missed 'administer views'. Personally I think it would make sense to use that as opposed to defining a new one unless you can see future use cases where a more specific permission would come in handy.
Two patches:
- admin-config-menu-permissions-2376925-5.patch has 'administer views` permission
- admin-config-menu-permissions-hook-permission-2376925-5.patch has 'administer views get' and the hook_permission implementation to define it
Comment #6
leon kessler commentedThanks.
I prefer the approach of having our own defined permission. A site admin may want to give their users access to administer views, but still hide the views_ajax_get configuration page (as it could be confusing and not make sense to them).
One thing though, the permission should be 'administer views ajax get' rather than 'administer views get'
Comment #7
steveworley commentedUpdated the patch to use 'administer views ajax get' for the permission.
Comment #9
leon kessler commentedAwesome, thanks so much.
Added to dev and and to new release 7.x-1.2.