Skip to content

Staff can login as superuser #70

Description

@Albyorix

This package is great work, thanks !

I've tested it for my app, and because I need any of my staff to login as a user, I added the login callback:
SU_LOGIN_CALLBACK = "example.utils.su_login_callback"

The problem is that now, any staff can login as superuser and edit their own permissions...

How can I restrict the login as to non-staff user only ?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions