How do you create different types of admin roles in voyager that can only view their own records

Posted In Voyager
  • yaknan-gambo 2 months ago
    Hi, I am new to laravelvoyager admin. How do I create multiple admin users with different roles that can only perform BREAD operations on their own records only in voyager admin.
    
    I have the following models: User, Employee, Department, Faculty, Publications, Post, Event and Advert. All employees are users that belong to a department. Each employee should be able to edit and update his/her details and any other Post, Event or Publication that is theirs only.
    
    Please how can I achieve this in Laravel voyager admin? Thank you.

    Hi, I am new to laravelvoyager admin. How do I create multiple admin users with different roles that can only perform BREAD operations on their own records only in voyager admin.

    I have the following models: User, Employee, Department, Faculty, Publications, Post, Event and Advert. All employees are users that belong to a department. Each employee should be able to edit and update his/her details and any other Post, Event or Publication that is theirs only.

    Please how can I achieve this in Laravel voyager admin? Thank you.

  • safe-mood 2 months ago
    u can set this with user roles and permissions 
    
    See this
    
    https://laravelvoyager.com/academy/roles-permissions/

    u can set this with user roles and permissions

    See this

    https://laravelvoyager.com/academy/roles-permissions/

  • yaknan-gambo 2 months ago
    @safe-mood thank you for the reply but I have used the roles and permissions. Permissions only enable select BREAD operations the user is allowed to do on a table. It does not restrict records. The user sees every record in a table. My challenge is to prevent the user from seeing all records. Any ideas?

    @safe-mood thank you for the reply but I have used the roles and permissions. Permissions only enable select BREAD operations the user is allowed to do on a table. It does not restrict records. The user sees every record in a table. My challenge is to prevent the user from seeing all records. Any ideas?

Please login or signup to leave a response.

Login

or Sign Up

Sign Up

or Login
×
tnylea
Cheers Friend!

I'm Tony, the creator of this site. I'm trying to increase my twitter following. Want to follow me?

Follow @tnylea If not, no worries :)