The only permission checked in the shout edit form is for administer shoutbox. That should only be checked for changing the shouts author. Users with moderate shouts aren't shown the moderate form section. Easy fix...
The only permission checked in the shout edit form is for administer shoutbox. That should only be checked for changing the shouts author. Users with moderate shouts aren't shown the moderate form section. Easy fix...
Comments
Comment #1
mstef commentedAnother note on permissions -- a 'view shouts' permission is needed for the block and page which I've already added myself.
Comment #2
disterics commented@mikesteff - you seem very capable. Can you help me with a patch for these bugs.
Comment #3
mstef commentedI'm not sure how to write patches but I'll show how I fixed both issues above.
Here is my corrected shoutbox_edit_form() function. Now users with 'moderate shoutbox' will have the appropriate options shown, etc.
New shoutbox_perm() function. I added a 'view shouts' permission:
Edit the access_arguments in hook_menu() now..
And now change the user_access in hook_block()...
Comment #4
vitalblue commented