We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Following the discussion in #41, it would be simpler to be able to define actions without explicitly defining an actions map, e.g.
class PostPolicy extends Policy { user: AuthorisableUser record: AuthorisablePost constructor(user: AuthorisableUser, record: AuthorisablePost) { super(user, record) } view(): boolean { return true } publish(): boolean { return this.user.id === this.record.userId } destroy(): boolean { return this.user.isAdmin } }
The text was updated successfully, but these errors were encountered:
100% agree there!
Sorry, something went wrong.
Solved in #48 and #49.
chrisalley
No branches or pull requests
Following the discussion in #41, it would be simpler to be able to define actions without explicitly defining an actions map, e.g.
The text was updated successfully, but these errors were encountered: