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
#12

(This post was last modified: 06-25-2021, 09:03 AM by paliz.)

Group is need for permission

Admin one
Admin two

Admin on get user pwrmission to access some ctl and so on

(06-25-2021, 09:03 AM)paliz Wrote: Group is  need for permission

Admin one
Admin two

Admin one get user permission to access some ctl and so on
Enlightenment  Is  Freedom
Reply
#13

Thanks!
Reply
#14

public $defaultUserGroup='member';
Enlightenment  Is  Freedom
Reply




Theme © iAndrew 2016 - Forum software by © MyBB