Remove old perms utils

This commit is contained in:
Matthew Dillon 2015-07-10 10:52:59 -08:00
parent e36d327f36
commit 6bc5ddfeb0
4 changed files with 0 additions and 28 deletions

View file

@ -1,3 +0,0 @@
export default function userCanAdd(role) {
return (role === 'W') || (role === 'A');
}

View file

@ -1,5 +0,0 @@
export default function userCanEdit(currentUser, author) {
let id = currentUser.id;
let role = currentUser.role;
return (role === 'W' && (+id === author)) || (role === 'A');
}