roles and permissions on an overloaded controller

Posted In Voyager
  • chandaldemarca 1 year ago
    I am overloading the controllers of a table (Products) for my application but I am not able to keep the roles and permissions assigned in voyager. The views I want to upload them in my application not in admin.
    Gracias

    I am overloading the controllers of a table (Products) for my application but I am not able to keep the roles and permissions assigned in voyager. The views I want to upload them in my application not in admin. Gracias

  • mark 1 year ago
    Sorry, I don't quite understand what your issue is?

    Sorry, I don't quite understand what your issue is?

  • chandaldemarca 1 year ago
    Perhaps my inexperience makes me not explain myself well.
    I have a Table (Products) to which I have applied BREAD and roles to which I have given different permissions from interface Voyager ("admin" can list and "user" can not). I have overloaded the controller in my App / Http / Controllers / Voyager application. I want to list the products in a view (not in "admin / products", but in "products") but, contrary to what I expect for "user", I list the products, this should not be the case.

    Perhaps my inexperience makes me not explain myself well. I have a Table (Products) to which I have applied BREAD and roles to which I have given different permissions from interface Voyager ("admin" can list and "user" can not). I have overloaded the controller in my App / Http / Controllers / Voyager application. I want to list the products in a view (not in "admin / products", but in "products") but, contrary to what I expect for "user", I list the products, this should not be the case.

  • mark 1 year ago
    Make sure your controllers includes the `Voyager::can('browse_products')` and such in each controller method. Replace `browse_products` with whatever permission you want the controller method to require from the user.

    Make sure your controllers includes the Voyager::can('browse_products') and such in each controller method. Replace browse_products with whatever permission you want the controller method to require from the user.

  • erin-sheahan 5 months ago
    Role of the voyage is selective and inducted for the future times. All the item ache been marked for the use of the [assignment maker free](https://www.assignmentgeek.com.au/) for all patterns of the life for the flow of the approval of the fixed items or the humans.

    Role of the voyage is selective and inducted for the future times. All the item ache been marked for the use of the assignment maker free for all patterns of the life for the flow of the approval of the fixed items or the humans.

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 :)