I'm using 4.7 and there is no option to grant another user "administer taxonomy access control" permission so that they can administer category permissions. If I grant them the "administer access control" permission then they a) don't have access to the "category permissions" tab, and b) can grant themselves all permissions on all modules, so I might as well just give them the admin password. I'm wondering if an option can be added to the "permissions" page to grant a category administrator the necessary permission to "administer taxonomy access control," without granting them the "administer access control" permission.
Comment | File | Size | Author |
---|---|---|---|
#15 | tac_permission.patch | 2.05 KB | xjm |
Comments
Comment #1
JWV CreditAttribution: JWV commentedYou can do this by adding this code to your taxonomy_access.module file:
Where you can customize the string "manage taxonomy access-rights" offcourse.
Furthermore you need to make a change in the function taxonomy_access_menu($may_cache) .
Change (line 86 at my version):
$access = user_access('administer users');
To:
$access = user_access('administer taxonomy access-rights');
(or whatever you did name it).And now it is listed at the "access control" page under "taxonomy_access".
Comment #2
klance CreditAttribution: klance commentedThanks very much for the code, but I'd still like to see this as a feature in the module so that others can use it as well, without having to copy and paste this customization every time they upgrade.
Comment #3
JWV CreditAttribution: JWV commentedOff course, its a small thing to add and will add some more value to this great module, hope the developers agree on this.
Comment #4
keve CreditAttribution: keve commentedI aggree, but this would be a more flexible solution:
As a default 'administer access control' would remain, but new permission administrator roles can be set: http://drupal.org/node/92871
What do you guys think?
Comment #5
klance CreditAttribution: klance commentedAt the moment, I only have one admin to handle permissions control for everything, but I can certainly see the value in being able to separate the permissions admin. roles by vocabulary or vocab type.
Comment #6
klance CreditAttribution: klance commentedI tried JWV's code, and it worked great. The only thing I added was the following:
$items[] = array(
'path' => 'admin/taxonomy_access', 'title' => t('category permissions'),
'callback' => 'taxonomy_access_admin_form',
'access' => $access,
'callback arguments'=>array(),
'type' => MENU_NORMAL_ITEM
);
That makes a stand-alone menu item appear in the user's menu called "category permissions," that takes them right to the page, and doesn't require them to have the "administer access control" or "access administration pages" permissions.
Comment #7
klance CreditAttribution: klance commentedOops, forgot to mention that was link 102 in my taxonomy.module file.
Comment #8
klance CreditAttribution: klance commentedMake that taxonomy_access.module. Coffee time.
Comment #9
sandy m CreditAttribution: sandy m commentedI have category modules (category-5.x-1.x-dev.tar) and using weblinks. I have created categories under respective containers. Now when i post a new weblink I can select one or more category from the list. Now the problem is my authenticated users can’t see this category list when they are posting a weblinks. Now what should I do so that the users can select a category when posting a weblinks.
Quick reply is appreciated.
Thanks in advance.
Comment #10
keve CreditAttribution: keve commentedIf there are more request to have this feature, it might be solved in later versions.
Comment #11
keve CreditAttribution: keve commentedComment #12
Magnus CreditAttribution: Magnus commentedIt would be nice to have this feature.
Comment #13
Summit CreditAttribution: Summit commented+1 for this feature, greetings, Martijn
Comment #14
xjmMoving feature request to the 6.x branch.
Comment #15
xjmHere's a patch to add this feature to the D7 branch. Note that it will also need a
hook_update_N()
to migrate users to the new permission, and possibly a bit on module enable to automatically grant the permission to roles with theadminister permissions
permission.Comment #18
kpf CreditAttribution: kpf commentedI would be very happy if the issue would be fixed in the code like described in #1.
I could imagine to this work, if I would know how to do.
Comment #19
delacosta456 CreditAttribution: delacosta456 commentedhi
i would also love having this feature ...
Futherre more , it would be nice if permission can cover "detail operations" that could be done by a delegated administrator of TAC" like in this Example of scenario :
Administrator can give permission
- to another to add /or not more term in Access rules for
- to setup specific type of operation, like
..... for "Editor Role"--> Configure--->"Vocabulary"-->Term-->Only [View , Update ] column wil be listed (allowed as admin configuration)
..... for "Readers Role"--> Configure--->"Vocabulary"-->Term-->Only [View] column will be listed (allowed as admin configuration)