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.

CommentFileSizeAuthor
userpoints_adjust.patch3.79 KBagileadam

Comments

kbahey’s picture

Version: master » 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.

agileadam’s picture

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!

manuel.adan’s picture

Component: Code: userpoints API » Code: userpoints
Issue summary: View changes
Status: Needs review » Closed (outdated)

Closing this as outdated, 6.x version is no longer maintained.