1 |
class EventImportResultPolicy < ApplicationPolicy |
1✔ |
2 |
def index? |
1✔ |
3 |
true if user.try(:has_role?, 'Librarian') |
4✔ |
4 |
end
|
|
5 | ||
6 |
def show? |
1✔ |
7 |
true if user.try(:has_role?, 'Librarian') |
4✔ |
8 |
end
|
|
9 | ||
10 |
def create? |
1✔ |
11 |
false
|
× |
12 |
end
|
|
13 | ||
14 |
def update? |
1✔ |
15 |
false
|
× |
16 |
end
|
|
17 | ||
18 |
def destroy? |
1✔ |
19 |
false
|
× |
20 |
end
|
|
21 |
end
|