transferred Code Ocean from original repository to GitHub
This commit is contained in:
5
app/policies/consumer_policy.rb
Normal file
5
app/policies/consumer_policy.rb
Normal file
@ -0,0 +1,5 @@
|
||||
class ConsumerPolicy < AdminOnlyPolicy
|
||||
def show?
|
||||
super || @user.consumer == @record
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user