Closed (outdated)
Project:
Shoutbox
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Jul 2009 at 19:25 UTC
Updated:
18 Mar 2016 at 11:12 UTC
Jump to comment: Most recent
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