Skip to content
This repository was archived by the owner on Mar 25, 2019. It is now read-only.
This repository was archived by the owner on Mar 25, 2019. It is now read-only.

Using self.model for authorizing in BaseController #11

@butschi

Description

@butschi

If there is an empty list passed in as a subject for authorizing in BaseController#authorize, it will use the Model class that is included as a class attribute of the controller to authorize.

That is technically not needed, since the Guard will return "true" in authorization if it received an empty list. But having the real Model class can provide us with the possibilities of a finer granular control in defining permissions, on the other hand.

Should we stick with it?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions