This website requires JavaScript.
Explore
Help
Register
Sign In
rooty
/
fab-manager
Watch
1
Star
0
Fork
0
You've already forked fab-manager
mirror of
https://github.com/LaCasemate/fab-manager.git
synced
2024-12-04 15:24:23 +01:00
Code
Issues
Releases
Activity
ecd92e12c1
fab-manager
/
app
/
policies
/
admin_policy.rb
10 lines
114 B
Ruby
Raw
Normal View
History
Unescape
Escape
release 2.0 rc
2016-03-23 18:39:41 +01:00
class
AdminPolicy
<
ApplicationPolicy
def
index?
refactored roles methods to match ruby conventions
2019-01-14 12:57:31 +01:00
user
.
admin?
release 2.0 rc
2016-03-23 18:39:41 +01:00
end
def
create?
refactored roles methods to match ruby conventions
2019-01-14 12:57:31 +01:00
user
.
admin?
release 2.0 rc
2016-03-23 18:39:41 +01:00
end
end
Reference in New Issue
Copy Permalink