Only show Moderate link if permissions allow it
This commit is contained in:
parent
006a85a8a5
commit
c97a711e6b
1 changed files with 4 additions and 3 deletions
|
|
@ -6,6 +6,7 @@
|
||||||
li class=('active' if action_name=='screenshots')
|
li class=('active' if action_name=='screenshots')
|
||||||
= link_to my_screenshots_path
|
= link_to my_screenshots_path
|
||||||
= fa_icon 'camera 2x', text: 'Screenshots'
|
= fa_icon 'camera 2x', text: 'Screenshots'
|
||||||
|
- if can?(:approve, Screenshot)
|
||||||
li class=('active' if action_name=='moderate_list')
|
li class=('active' if action_name=='moderate_list')
|
||||||
= link_to moderate_list_path
|
= link_to moderate_list_path
|
||||||
= fa_icon 'check 2x', text: 'Moderate'
|
= fa_icon 'check 2x', text: 'Moderate'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue