first commit
This commit is contained in:
19
resources/frontend/core/policies/status.policy.js
Normal file
19
resources/frontend/core/policies/status.policy.js
Normal file
@@ -0,0 +1,19 @@
|
||||
import { hasRole } from '@/utils/user';
|
||||
|
||||
export default class StatusPolicy {
|
||||
static viewAny(user) {
|
||||
return hasRole(user, 'admin');
|
||||
}
|
||||
|
||||
static create(user) {
|
||||
return hasRole(user, 'admin');
|
||||
}
|
||||
|
||||
static update(user, model) {
|
||||
return hasRole(user, 'admin');
|
||||
}
|
||||
|
||||
static delete(user, model) {
|
||||
return hasRole(user, 'admin');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user