Show permissions properly
can? :foo, Screenshot only checks if the use can 'foo' any screenshot can? :foo, Screenshot.new checks for new screenshots not assigned to them
This commit is contained in:
parent
c922723a9e
commit
e04b54d6fd
1 changed files with 5 additions and 5 deletions
|
|
@ -23,22 +23,22 @@ p = current_user.screenshots.count
|
||||||
|
|
||||||
h2 Your permissions
|
h2 Your permissions
|
||||||
ul
|
ul
|
||||||
- if can? :approve, Screenshot
|
- if can? :approve, Screenshot.new
|
||||||
li
|
li
|
||||||
=> fa_icon 'thumbs-up'
|
=> fa_icon 'thumbs-up'
|
||||||
'approve uploaded screenshots
|
'approve uploaded screenshots
|
||||||
- if can? :destroy, Screenshot
|
- if can? :destroy, Screenshot.new
|
||||||
li
|
li
|
||||||
=> fa_icon 'trash'
|
=> fa_icon 'trash'
|
||||||
'delete screenshots
|
'delete screenshots
|
||||||
- if can? :hide, Screenshot
|
- if can? :hide, Screenshot.new
|
||||||
li
|
li
|
||||||
=> fa_icon 'eye-slash'
|
=> fa_icon 'eye-slash'
|
||||||
'hide screenshots from the public
|
'hide screenshots from the public
|
||||||
- if can? :unhide, Screenshot
|
- if can? :unhide, Screenshot.new
|
||||||
li
|
li
|
||||||
=> fa_icon 'eye'
|
=> fa_icon 'eye'
|
||||||
'restore (unhide) screenshots to the public
|
'restore (unhide) screenshots for the public
|
||||||
- if can? :view, Log
|
- if can? :view, Log
|
||||||
li
|
li
|
||||||
=> fa_icon 'book'
|
=> fa_icon 'book'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue