Welcome Guest, Not a member yet? Register   Sign In
Myth Auth - Working with groups and permissions
#11

(06-25-2021, 04:40 AM)manager Wrote:
(06-24-2021, 06:40 AM)rafinhaa Wrote: So am I required to declare a group and give permissions to it and then to the user?

I wanted it to be user-only without having to put him in a group.
Myth Auth  operates with many concepts such groups (roles) and permissions. User may belong to some single group or groups. Groups = Roles.

After registration process if $defaultUserGroup variable in config file  is empty (no default group), then user will not belong to any group.

To work with permissions you need create them first and set some to the user. Then you can call methods to check user has permission and do some logic.


Can you elaborate an example of this?

For now I'm only using it with groups
Reply


Messages In This Thread
RE: Myth Auth - Working with groups and permissions - by rafinhaa - 06-25-2021, 07:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB