Authorisation management using CanCanCan added
This commit is contained in:
parent
51be4a4777
commit
7a3b65fe50
24 changed files with 211 additions and 295 deletions
|
|
@ -27,8 +27,8 @@
|
|||
h2 Number of screenshots you uploaded
|
||||
p = current_user.screenshots.count
|
||||
|
||||
- if current_user.is_admin?
|
||||
h2 Admin
|
||||
p Apparently you are an administrator. Be careful with that thing!
|
||||
|
||||
tt = current_user.inspect
|
||||
/ - if current_user.is_admin?
|
||||
/ h2 Admin
|
||||
/ p Apparently you are an administrator. Be careful with that thing!
|
||||
/ - you can moderate
|
||||
/ - you can …
|
||||
Loading…
Add table
Add a link
Reference in a new issue