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.

CommentFileSizeAuthor
#15 tac_permission.patch2.05 KBxjm
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

JWV’s picture

You can do this by adding this code to your taxonomy_access.module file:

function taxonomy_access_perm() {
	return array("administer taxonomy access-rights");
}

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".

klance’s picture

Thanks 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.

JWV’s picture

Off course, its a small thing to add and will add some more value to this great module, hope the developers agree on this.

keve’s picture

I 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?

klance’s picture

At 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.

klance’s picture

I 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.

klance’s picture

Oops, forgot to mention that was link 102 in my taxonomy.module file.

klance’s picture

Make that taxonomy_access.module. Coffee time.

sandy m’s picture

I 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.

keve’s picture

Version: 4.7.x-1.x-dev » master
Priority: Normal » Minor

If there are more request to have this feature, it might be solved in later versions.

keve’s picture

Status: Active » Postponed
Magnus’s picture

It would be nice to have this feature.

Summit’s picture

Version: master » 5.x-2.x-dev

+1 for this feature, greetings, Martijn

xjm’s picture

Version: 5.x-2.x-dev » 6.x-1.x-dev

Moving feature request to the 6.x branch.

xjm’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Postponed » Needs work
FileSize
2.05 KB

Here'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 the administer permissions permission.

kpf’s picture

Priority: Minor » Major

I 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.

delacosta456’s picture

Issue summary: View changes

hi
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)