Remove old perms utils
This commit is contained in:
parent
e36d327f36
commit
6bc5ddfeb0
4 changed files with 0 additions and 28 deletions
|
@ -1,3 +0,0 @@
|
|||
export default function userCanAdd(role) {
|
||||
return (role === 'W') || (role === 'A');
|
||||
}
|
|
@ -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');
|
||||
}
|
Reference in a new issue