Skip to content

Add Impersonation #117

@mykeels

Description

@mykeels

Is your feature request related to a problem? Please describe.
When testing, I have to logout and login as the user I need to use.

Describe the solution you'd like
With Laravel Impersonate, I can pick a user I'd like to impersonate and see the application through that user's eyes. This is really helpful when testing.

We can have an "Impersonate" link/button on the user profile dropdown at the top-right of the screen, allowing the user to select a user besides themselves to impersonate.

Additional context
This feature can be made only accessible in dev/staging environment, for security reasons.

A more advanced approach will be allowing users in a higher role/state-hierarchy to impersonate users under them. E.g. A master should be able to impersonate any of

  • admin
  • accountant
  • librarian
  • teacher
  • student

An admin can only impersonate

  • accountant
  • librarian
  • teacher
  • student

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