Skip to content

auth with role problem #230

Description

Hi,

Hope you are all well !

How can I restrict the access to the admin path to only users with the "Admin" role set in the database ?

I tried with qor-example and anybody can have access to the admin dashboard with a confirmed account.
Also, I noticed that new accounts have an empty role when they create a new account. How to set it while submitting the registration form ?

Is it possible to fix the demo ? Or is there a parameter to add somewhere to check the user's role ?

Thanks in advance for your replies and insights about these questions.

Have a nice day !

Cheers,
X

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions