Unable to save User/Group permissions for articles

Please report bugs here!

Moderator: Thorsten

Post Reply
rickliveops
Posts: 61
Joined: Tue Mar 27, 2007 8:57 pm
Location: Palo Alto, California
Contact:

Unable to save User/Group permissions for articles

Post by rickliveops »

The User and Group Permissions are not being saved when I change them from the default.

Steps:
I created a Category (General).
I created two FAQ entries (question 1 and question 2)
I created two user Groups (Admin and LOAgent)
I edit question 1 and set the Group permission to LOAgent (it was set to Admin by default).
I save question 1 but the Group permission reverts to Admin.
I edit question 2 and set the User permission to All Users.
I save question 2 but the User permission reverts to (admin Rick Elliott).

On a different but related note:
I don't understand how the User and Group permissions relate (even after reading the documentation). Do group permissions override user permissions? I.e. If question 2 is set to All Users, but the group permission restricts it to LOAgent, will ONLY LOAgent group members be able to see that question?
rickliveops
Posts: 61
Joined: Tue Mar 27, 2007 8:57 pm
Location: Palo Alto, California
Contact:

Additional info

Post by rickliveops »

I noticed that things behave a little differently when trying to restrict access to a category, instead of a question:

If I edit a category, I can change the access to either All Groups or Restrict Access to the Admin group (the first group I created). If I restrict to Admin, I can see the restriction take effect in the user view (in other words, the feature works as expected). However, if I try to change the Group Access to a different group, it won't take the change. It resets itself to the first group in the list.

I'm running RC2 on Linux, Apache 2.0.59, php 5.2.2, MySQL 4.0.27.
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

I'll take a closer look at these issues this evening.

The group permissions are overriding the user permissions.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

I fixed the issues, please re-test them. Thank you!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
rickliveops
Posts: 61
Joined: Tue Mar 27, 2007 8:57 pm
Location: Palo Alto, California
Contact:

Still not entirely fixed

Post by rickliveops »

I think you are 95% of the way there:

I checked out the latest source by doing
cvs -d:pserver:anonymous@thinkforge.org:/cvsroot/phpmyfaq login
cvs -z3 -d:pserver:anonymous@thinkforge.org:/cvsroot/phpmyfaq co -r PMF_2_0 phpmyfaq

(my version of index.php is 1.113 on the PMF_2_0 (branch: 1.113.2))

Now, when I set the group permission, my articles appear or disappear according to the user who is logged in.

But the UI in the Edit Records page doesn't look right. It always shows the default choice and it doesn't "stick" to the actual user or group when I save the record. When I go back to look, the permission has reverted to the default choice, even though it is restricting access to a different user or group.
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

okay, I'll take a look tomorrow on my free day. :-)

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Still not entirely fixed

Post by Thorsten »

Hi Rick,
rickliveops wrote:But the UI in the Edit Records page doesn't look right. It always shows the default choice and it doesn't "stick" to the actual user or group when I save the record. When I go back to look, the permission has reverted to the default choice, even though it is restricting access to a different user or group.
this is working now on my test systems.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply