Sometimes may be useful to have a fine grain control over who can assign terms to user or who can view each user's terms. For example, if admin use this terms to classificate users but they don't want users to view this terms.

I've rolled a patch for this functionality.

The patch is very simple, it just add three permissions: 'set user terms', 'view own user terms' and 'view user terms'.
First allow user to set user terms for any users by checking this permission in the user_terms_form_profile() function.
The others permissions are used when displaying user profiles in user_terms_view_profile().

Not sure if a 'set own user terms' is need. If yes it's very easy to add.

CommentFileSizeAuthor
user_terms_permissions.patch1.79 KBtunic
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joachim’s picture

Status: Needs review » Closed (duplicate)

Hi. Thanks for the patch!

Can you take a look at the work done so far at #734666: Permissions management and see if you can combine your efforts with that?

It's a good idea to always search the issue queue before working on stuff.

tunic’s picture

Sure, I'll check that issue.

I searched issue queue looking for issues with the word 'permission', but the issue you pointed out has only one 's', it says 'permision', so I didn't find it :(

morybel’s picture

It may be a year later, but this patch worked for me. I've tried #734666: Permissions management with no success and I needed this quickly, so thanks Tunic for this one. :-)