Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Coldpressed on July 15, 2021, 06:29:38 PM

Title: Restrict what member group can see....
Post by: Coldpressed on July 15, 2021, 06:29:38 PM
2 of us are scratching our heads on this and cant work it out.
We have a registered user who has been a naughty boy.We would like to put him in the naughty corner for a certain amount of time.
Not a ban.
We have made a new user profile called "TimeOut".
Checked all permissions so he cannot see anything yet after testing this profile he is able to see everything and is able to thank other users.
We have found we cannot change his account to guest from a reg user. We would like him to only see one board named "TimeOut"Yet when all other boards are un ticked and TimeOut is ticked he is still able to see all ther other boards.

Is there a way to do this?
Title: Re: Restrict what member group can see....
Post by: Kindred on July 15, 2021, 06:33:15 PM
Yes...  but you either need to turn on, and use DENY permissions or remove him from any other grouos
Title: Re: Restrict what member group can see....
Post by: shadav on July 15, 2021, 06:42:06 PM
the regular member group (or any other group that they are in) will overwrite any other permissions if any of the groups they are in are allowed to do something unless like kindred said you turn on the use deny permissions

in your admin under members go to permissions then to settings
Enable the option to deny permissions

then go back to general permissions and edit your timeout and deny all the permissions you don't want them to have

Disallow and Deny - What's the difference when it comes down to permissions (https://wiki.simplemachines.org/smf/Disallow_and_Deny_-_What%27s_the_difference_when_it_comes_down_to_permissions)
Title: Re: Restrict what member group can see....
Post by: Kindred on July 15, 2021, 09:05:48 PM
Note, not "overwrite"

Smf permissions are INCLUSIVE.
a user has the GREATEST set of ALLOW permissions granted by ALL member groups that they belong to., regardless of what is set to DISALLOW.

Except DENY.
Deny permissions become EXCLUSIVE,  which means that they are stronger than any ALLOW
Title: Re: Restrict what member group can see....
Post by: Coldpressed on July 15, 2021, 09:47:13 PM
TYVM for all the replies.We will look into it.
Much appreciated <3
Title: Re: Restrict what member group can see....
Post by: efk on July 16, 2021, 09:14:50 AM
Also read my topics, this will help you to deal with that user

https://www.simplemachines.org/community/index.php?topic=575212.msg4070909#msg4070909
https://www.simplemachines.org/community/index.php?topic=571419.msg4045460#msg4045460

Go to his profile and click Show Permissions, this will show you to which membergroups he belongs.