mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-01 12:24:28 +01:00
10 lines
114 B
Ruby
10 lines
114 B
Ruby
class AdminPolicy < ApplicationPolicy
|
|
def index?
|
|
user.admin?
|
|
end
|
|
|
|
def create?
|
|
user.admin?
|
|
end
|
|
end
|