Initial commit
This commit is contained in:
9
app/policies/profile_policy.rb
Normal file
9
app/policies/profile_policy.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
class ProfilePolicy < ApplicationPolicy
|
||||
def show?
|
||||
user == record
|
||||
end
|
||||
|
||||
def update?
|
||||
user == record
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user