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

Any documentation on how to deploy groups and permissions using myth?

I inserted this data into the auth_groups table:
ID | Name | Description
1   | Admin | Admin
2   | Member | Member

auth_groups_users
group_id | user_id
1 | 1
2| 2

auth_groups_permissions
group_id | permission_id
1 | 1

auth_permissions
id | name | description
1| admin | admin

I have two users:
1 = Admin
2 = Member

Routes:
PHP Code:
$routes->group('/', ['filter' => 'login'], function($routes){
 
$routes->group('users', ['filter' => 'role:admin'],function($routes){

 });
}); 

but the administrator when accessing the route users says he doesn't have permission
Reply


Messages In This Thread
Myth Auth - Working with groups and permissions - by rafinhaa - 06-22-2021, 12:53 PM



Theme © iAndrew 2016 - Forum software by © MyBB