Skip to content

Instantly share code, notes, and snippets.

@bmuller
Created November 19, 2016 16:20
Show Gist options
  • Save bmuller/c3eae918a84f2a1194ff31132263fcfd to your computer and use it in GitHub Desktop.
Save bmuller/c3eae918a84f2a1194ff31132263fcfd to your computer and use it in GitHub Desktop.
authorization file for climate
class ListAuthorization {
construtor(user, list) {
this.user = user
this.list = list
}
can_create() {
return true;
}
can_update() {
return true;
}
can_read() {
return true;
}
can_delete() {
return true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment