Closed (fixed)
Project:
Misery
Version:
6.x-1.4
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Sep 2010 at 07:57 UTC
Updated:
1 Jan 2011 at 13:10 UTC
I installed this module yesterday with the anticipation of using it in the future. I started getting emails from my users today complaining that the site was acting weird. It took me a while to figure it out, but I had set 'endure misery' permissions on Authenticated users! At the time, I thought this meant 'allow this role to have endure misery to be set to it', rather than 'everyone in this role endures misery'!
My own fault of course for setting this without checking, but to save this happening to someone else at some point in the future, it may be helpful to change the name to 'always endure misery'.
Comments
Comment #1
danielb commentedUnfortunately changing the name will cause upgrade issues, since permissions have no ID other than the name of the permission
Comment #2
jaypanThat's true, though the worst that will happen is that some group who is suffering misery all of a sudden won't be.
Comment #3
jefkin commentedYou could fix that in your upgrade, do a update on the permissions table changing rows with the old name to have the new name, not difficult at all unless you need some help with the mysql.
Comment #4
danielb commentedgood point
Comment #5
jaypanIn retrospect, I don't even think this should be in the permissions table at all. This isn't something you are giving permission for, it's something that you are punishing with. It should be removed from the permissions table altogether and put on a settings page.
Comment #6
danielb commentedGood idea, done.