Access to adjust points, but not administer the module

keystr0k - July 28, 2009 - 15:36
Project:User Points
Version:6.x-1.0
Component:Code: userpoints API
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

I have a situation where I need to give my client access to manage the points (adjust, moderate, etc.) but I do NOT want to give them access to the administration page for the points module.
I figured these ought to be separate. A user should be allowed to add or subtract points without having access to administer the module's settings.
The patch below probably isn't sufficient, but it gets the job done for me. The only thing I wanted to do, but couldn't figure out how, is allow the "administer userpoints" AND my new "adjust userpoints" perms to be able to access these features. I believe users with "administer userpoints" should be able to do everything.
Anyhow, this patch lets me give users "Adjust userpoints" permissions, but not "Administer userpoints." The result is that they can work with userpoints, but cannot harm the settings for the module.

AttachmentSize
userpoints_adjust.patch3.79 KB

#1

kbahey - July 28, 2009 - 18:11
Version:HEAD» 6.x-1.x-dev
Component:Code: userpoints_basic» Code: userpoints API
Status:needs work» needs review

Is this against 6.x-1.x-dev?

If I get 2 positive reviews on this, I will commit it.

#2

keystr0k - July 29, 2009 - 18:21
Version:6.x-1.x-dev» 6.x-1.0

This is against 6.x-1.0. Sorry, I chose the wrong item from the version drop down.
Thanks!

 
 

Drupal is a registered trademark of Dries Buytaert.