Page 1 of 1
Cannot uncheck Add pages permission from new groups
Posted: Tue Sep 08, 2009 6:19 am
by Hypocrite
I have the following problem:
I have added a new group with the permission to add Add Pages but I can't get the Add New Content link to show in the admin panel.
What could be the problem? What could affect the link not showing?
I have made a small change in the database where I have changed the names of the permission to Finnish. I have only modified the permission_text value and not touched the permission_name value. Could this break something?
I also noticed that the problem seems to be with only the permission to Add Pages. I tried to add that permission to other group and it was added correctly to the database. But now I cannot remove the permission from the admin panel.
Other permissions I can add and remove from the database without problems.
Re: Add New Content link not showing up in 1.6.4
Posted: Tue Sep 08, 2009 9:11 am
by Hypocrite
I found the problem. I had changed the name of the Manage All Content in the database. Now the editor links are displayed correclty.
Only problem I now have, is that I cannot uncheck the Add Pages permission.
When checking and saving, it correctly saves to the database. But when I uncheck it, it doesn't remove the permission.
Re: Add New Content link not showing up in 1.6.4
Posted: Tue Sep 08, 2009 9:51 am
by RonnyK
Could you explain a little more what you tried when it didnt update the untick.
I just tested in 1.6.5 and all seems to work. If this is an issue, I need to have it reproduced in 1.6.5.....
Ronny
Re: Add New Content link not showing up in 1.6.4
Posted: Tue Sep 08, 2009 10:21 am
by Hypocrite
The problem is really weird.
I have the following three groups in the CMS system:
Editors, Designers and Test group
I give them all the permission to Add pages. The permission is updated correctly to the database for all three groups.
Now when I untick all three group permissions and save, only editors group gets updated to the database. The two other groups still have the permission.
I have checked the database and all the information should be correct. I have also checked the code in the admin panel and the information should be correct.
I have three columns in the database:
Code: Select all
group_perm_id group_id permission_id
482 4 1
481 3 1
480 2 1
And the code in the admin panel is following:
Code: Select all
<input name="pg_1_2" value="1" type="checkbox">
<input name="pg_1_3" value="1" checked="checked" type="checkbox">
<input name="pg_1_4" value="1" checked="checked" type="checkbox">
So in my opion, the permissions should be updated correctly for all the groups, but they only get updated correctly for the group with ID 2.
Re: Add New Content link not showing up in 1.6.4
Posted: Tue Sep 08, 2009 1:13 pm
by Hypocrite
I think this a bug.
I tried it also with your demo installation here:
http://www.opensourcecms.com/demo/2/10/CMS_Made_Simple
I made a new group with the name Test group.
I gave it the right to Add pages. Now when I uncheck it, and click Submit, the permission is still checked.
Re: Cannot uncheck Add pages permission from new groups
Posted: Tue Sep 08, 2009 1:53 pm
by RonnyK
UPDATE:
I could reproduce this on latest as well... Thanks for the showing of the setup. I tried with regular groups....
Ronny
Re: Cannot uncheck Add pages permission from new groups
Posted: Tue Sep 08, 2009 2:30 pm
by RonnyK
I could only reproduce in one single instance, being that ONLY add-pages (actually if ONLY one tick on a permission) was set. It seemed that it does take the unselect as long as there is at least ONE other permission set.
Ronny