User rights & Group

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
meulator
Posts: 7
Joined: Thu Mar 01, 2018 12:56 pm

User rights & Group

Post by meulator »

Hi everyone,

I just setup PhpmyFAQ latest stable version, and it's great.

I have a question however about Groups & user rights.

I need some user to be able to publish articles, and assign them to groups. So i created a group, and set the rights to create articles, modify, publish etc...

But when i assign users to that group, they don't see the "Administration" tab, where it's possible to create articles.

When i allow the group all the permissions, the users within the group can administrate and create article. As long as i uncheck one permission, for instance "Right to delete multi-site instances" the Administration button is not showing anymore, so publishing or editing articles isn't possibe anymore...

Am i doing something wrong?

Regards,
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: User rights & Group

Post by Thorsten »

Hi,

no, it's a stupid and hard to fix bug in 2.9.x. Your users can use the /admin login to avoid the issue.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
meulator
Posts: 7
Joined: Thu Mar 01, 2018 12:56 pm

Re: User rights & Group

Post by meulator »

Hi Thorsten,

thanks for the answer! It works perfectly well.

Regards,
trf000
Posts: 37
Joined: Tue Nov 23, 2010 5:16 pm

Re: User rights & Group

Post by trf000 »

+1 here on hoping you get this resolved soon. It is a little inconvenient.
trf000
Posts: 37
Joined: Tue Nov 23, 2010 5:16 pm

Re: User rights & Group

Post by trf000 »

So I did a little digging.

Line 613 index.php in the faq directory

$minRights = ['37', '39', '40', '41'];

Permissions 40 and 41 have to do with adding and editing instances. if $minRights means what I think it means, that's bad. So I removed those two and added 38, "Right to add questions in frontend".

Which seems logical as 37 is "Right to add FAQs in frontend" and 39 is "Right to add comments in frontend".

Now those permissions have to be checked in the group. You cannot take those away, but That is seemingly a workaround until you have a better solution.
Post Reply