Welcome Guest, Not a member yet? Register   Sign In
Myth-Auth Role filter parameter issues
#1

(This post was last modified: 04-20-2020, 04:02 AM by midhunlalkc.)

Hi,
i am using myth-auth in My application that have both frontend and backend users.

backend user groups:  owner, admin, customer_support
frontend user groups:  customer

i want all the loggedIn backend users to pass through the below filter.

in app/Config/Filters when i use filter parameters like below
Code:
public filters = [
    'role:owner,admin,customer_support' => ['before' => ['admin/*']],
];

am getting  the following error.

role:owner,admin,customer_support filter must have a matching alias defined.

So how can i achieve this?
Reply


Messages In This Thread
Myth-Auth Role filter parameter issues - by midhunlalkc - 04-20-2020, 04:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB