Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: aegersz on June 29, 2015, 07:08:29 PM

Title: How to assign Permissions to certain members ?
Post by: aegersz on June 29, 2015, 07:08:29 PM
i wish to give access to SA (Chat) by member names and i couldn't see something suitable in Permissions.

Possible ?
Title: Re: How to assign Permissions to certain members ?
Post by: Illori on June 29, 2015, 07:58:33 PM
if there is a permission for SA chat, you would have to add those users to a group that has permission to use it.
Title: Re: How to assign Permissions to certain members ?
Post by: Steve on June 30, 2015, 08:39:41 AM
Shouldn't that be asked here?

http://www.simplemachines.org/community/index.php?topic=391961.0
Title: Re: How to assign Permissions to certain members ?
Post by: Kindred on July 05, 2015, 10:44:33 PM
Permissions in smf are group based,  and can not be assigned to individual users.
Title: Re: How to assign Permissions to certain members ?
Post by: Steve on July 06, 2015, 09:24:28 AM
I know this is just semantics and what Kindred is saying is correct but you can create a group specifically for an individual and assign the permissions accordingly (which is pretty much what Illori said).

This gets cumbersome if you're talking a lot of members though.

Or am I off base?
Title: Re: How to assign Permissions to certain members ?
Post by: la muerte on July 06, 2015, 09:36:14 AM
You can make a user group with the permission to allow SA chat only, and set it as a secondary membergroup for those who need it.
Title: Re: How to assign Permissions to certain members ?
Post by: aegersz on July 06, 2015, 08:02:27 PM
Quote from: la muerte on July 06, 2015, 09:36:14 AM
You can make a user group with the permission to allow SA chat only, and set it as a secondary membergroup for those who need it.

yeah, but it's not working - when i create the new membergroup (SA Chat) modeled on a regular user BUT with SA Chat permitted, say, then set said member to either a primary or secondary group, i still end up with no access to SA Chat for a certain member.
Title: Re: How to assign Permissions to certain members ?
Post by: aegersz on July 06, 2015, 11:01:04 PM
Quote from: Kindred on July 05, 2015, 10:44:33 PM
Permissions in smf are group based,  and can not be assigned to individual users.

i think that this may be the problem ... so, does assigning a member to a group fail because the original group doesn't have access ?
Title: Re: How to assign Permissions to certain members ?
Post by: Sir Osis of Liver on July 06, 2015, 11:12:48 PM
No, the member has all permissions of whichever group you put him in.
Title: Re: How to assign Permissions to certain members ?
Post by: aegersz on July 10, 2015, 05:09:29 AM
Quote from: Krash on July 06, 2015, 11:12:48 PM
No, the member has all permissions of whichever group you put him in.

i wonder why it's not working ... hmm ... time for more investigation.
Title: Re: How to assign Permissions to certain members ?
Post by: Steve on July 10, 2015, 08:05:15 AM
Quote from: aegersz on July 06, 2015, 08:02:27 PMyeah, but it's not working - when i create the new membergroup (SA Chat) modeled on a regular user BUT with SA Chat permitted, say, then set said member to either a primary or secondary group, i still end up with no access to SA Chat for a certain member.

Are you saying it works for other members but not for a specific one? Or this happens for any member you try?
Title: Re: How to assign Permissions to certain members ?
Post by: aegersz on July 10, 2015, 09:28:45 AM
for a specific member ... this is what i did:

i created a groupname of "Special" (modeled on Regular) then changed it to permit SA Chat.

now when i add any member to the group Special., i still can't use SA Chat (even though i have permitted this in "Special" for just that member.
Title: Re: How to assign Permissions to certain members ?
Post by: Illori on July 10, 2015, 09:33:16 AM
do you have deny/disallow permissions enabled?
Title: Re: How to assign Permissions to certain members ?
Post by: aegersz on July 10, 2015, 10:00:48 AM
Quote from: Illori on July 10, 2015, 09:33:16 AM
do you have deny/disallow permissions enabled?

it's disabled ... is that correct ?
Title: Re: How to assign Permissions to certain members ?
Post by: br360 on July 10, 2015, 03:56:03 PM
If you enable the option to deny permissions, you can set permissions to allow the special SA membergroup to have access to chat. That way, no matter how many other groups they are in (even the groups where sa chat is disallowed- not denied though) they will still have access to the sa chat.
Title: Re: How to assign Permissions to certain members ?
Post by: Kindred on July 10, 2015, 04:14:13 PM
sorry, br360 - but that is incorrect... actually, it's the opposite.

If you turn on deny permissions and accidentally set ANY group to deny access to the chat -- if a user is in that group, he will be denied accesss, even if every other group allows it.

Deny is an EXCLUSIVE permission. When Deny is turned on and set, any user in that membergroup will be denied, regardless of the allow/disallow settings of any other group.

Allow is INCLUSIVE... when allow is set, any user in any membergroup that allows a permission will be allowed, regardless of the disallow settings of any other group.
Title: Re: How to assign Permissions to certain members ?
Post by: br360 on July 10, 2015, 04:28:22 PM
That's what I was actually trying to say. ;)

If a member is in 2 groups, and a permission of one group is set to disallow (not deny), and the other group is set to allow, doesn't the "allow" in group 2 override the disallow permission set in group 1- and the member does in fact have that permission?
Title: Re: How to assign Permissions to certain members ?
Post by: Kindred on July 10, 2015, 04:46:39 PM
yes... for allow and disallow that is how it works
Title: Re: How to assign Permissions to certain members ?
Post by: aegersz on July 10, 2015, 04:58:54 PM
guys, i love the help but am even more confused.

from what i can glean, Deny should (and is) disabled ... so why isn't it working for me ?

Title: Re: How to assign Permissions to certain members ?
Post by: br360 on July 10, 2015, 05:08:36 PM
You do want to go to your permissions- Administration Center » Permissions » Settings and then you will see "Enable the option to deny permissions"

Click that, and when you go back to your permissions you will now see three option for each permission- "A" "X" and "D"

If you choose "X" on a certain group for SA chat, they will not have permissions to see chat. If you then go to the SA group you set up, and click "A" for that group, they will be able to see chat while everyone else won't.

Title: Re: How to assign Permissions to certain members ?
Post by: aegersz on July 10, 2015, 05:28:53 PM
yep, that all makes sense but i still can't assign permissions - i'm only using "X' (Regular) and "A' (Special). if the member is in both groups then surely Special, as it's primary membergroup, will take effect.

but i still can't assign the Chat to Special  :(

Title: Re: How to assign Permissions to certain members ?
Post by: br360 on July 10, 2015, 05:51:00 PM
Ok, go to  Administration Center » Membergroups » Edit Membergroups

Then click on the modify link to the right of the Special member group, then find the "Inherit Permissions:" box. Did you give the special members unique permissions, or are they inherited from another regular group?
Title: Re: How to assign Permissions to certain members ?
Post by: Illori on July 10, 2015, 06:37:15 PM
Quote from: br360 on July 10, 2015, 05:51:00 PM
Did you give the special members unique permissions, or are they inherited from another regular group?

if the permissions are inherited from another group, you cannot set permissions separately from the other groups.
Title: Re: How to assign Permissions to certain members ?
Post by: aegersz on July 10, 2015, 08:40:07 PM
Quote from: Illori on July 10, 2015, 06:37:15 PM
Quote from: br360 on July 10, 2015, 05:51:00 PM
Did you give the special members unique permissions, or are they inherited from another regular group?

if the permissions are inherited from another group, you cannot set permissions separately from the other groups.

they started off as inherited but then became unique permissions.

all i wanted was for certain members to look like Regular Members (no Chat) but with Chat.

i think it's going into the too hard basket ... but thanks for your help anyway.
Title: Re: How to assign Permissions to certain members ?
Post by: br360 on July 10, 2015, 08:49:45 PM
It can be confusing, but not really that hard once it gets figured out. If the special group now have unique permissions, go into the permissions for that group and make sure that all the permissions are set properly to what you want. I'm guessing they will have the same permissions as regular members, but where it says SA chat permissions, they will have the "A" or allow marked.

Then just double check your regular member permission group and make sure the permissions are the same...except where the SA permissions are, there is the "X" checked.

Then any member that you want to have be in the SA special group, give them that membergroup as their secondary group, and keep their primary group as regular members.

Just double check to make sure all the permissions are correct and that they have the SA special group as their secondary group.