2a34255e0b
Co-authored-by: Subin <subinthattaparambil@gmail.com> Co-authored-by: Manoj <manojmj92@gmail.com> Co-authored-by: Nithin <webofnithin@gmail.com>
18 lines
209 B
Ruby
18 lines
209 B
Ruby
class UserPolicy < ApplicationPolicy
|
|
|
|
def index?
|
|
true
|
|
end
|
|
|
|
def create?
|
|
@user.administrator?
|
|
end
|
|
|
|
def update?
|
|
@user.administrator?
|
|
end
|
|
|
|
def destroy?
|
|
@user.administrator?
|
|
end
|
|
end
|