Initial Commit
Co-authored-by: Subin <subinthattaparambil@gmail.com> Co-authored-by: Manoj <manojmj92@gmail.com> Co-authored-by: Nithin <webofnithin@gmail.com>
This commit is contained in:
18
app/policies/contact_policy.rb
Normal file
18
app/policies/contact_policy.rb
Normal file
@@ -0,0 +1,18 @@
|
||||
class ContactPolicy < ApplicationPolicy
|
||||
|
||||
def index?
|
||||
@user.administrator?
|
||||
end
|
||||
|
||||
def update?
|
||||
@user.administrator?
|
||||
end
|
||||
|
||||
def show?
|
||||
@user.administrator?
|
||||
end
|
||||
|
||||
def create?
|
||||
true
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user