Cannot uncheck Add pages permission from new groups

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
Hypocrite
Forum Members
Forum Members
Posts: 48
Joined: Wed Aug 26, 2009 6:25 am

Cannot uncheck Add pages permission from new groups

Post 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.
Last edited by Hypocrite on Tue Sep 08, 2009 1:14 pm, edited 1 time in total.
Hypocrite
Forum Members
Forum Members
Posts: 48
Joined: Wed Aug 26, 2009 6:25 am

Re: Add New Content link not showing up in 1.6.4

Post 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.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Add New Content link not showing up in 1.6.4

Post 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
Hypocrite
Forum Members
Forum Members
Posts: 48
Joined: Wed Aug 26, 2009 6:25 am

Re: Add New Content link not showing up in 1.6.4

Post 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.
Last edited by Hypocrite on Tue Sep 08, 2009 10:53 am, edited 1 time in total.
Hypocrite
Forum Members
Forum Members
Posts: 48
Joined: Wed Aug 26, 2009 6:25 am

Re: Add New Content link not showing up in 1.6.4

Post 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.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Cannot uncheck Add pages permission from new groups

Post by RonnyK »

UPDATE:

I could reproduce this on latest as well... Thanks for the showing of the setup. I tried with regular groups....

Ronny
Last edited by RonnyK on Tue Sep 08, 2009 2:03 pm, edited 1 time in total.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Cannot uncheck Add pages permission from new groups

Post 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
Post Reply

Return to “CMSMS Core”