Feature: API for updating account settings (#645)
* Feature: API for updating account settings - API to update account locale - API to update account name - API to show account info
This commit is contained in:
13
app/policies/account_policy.rb
Normal file
13
app/policies/account_policy.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
class AccountPolicy < ApplicationPolicy
|
||||
def show?
|
||||
# FIXME : temporary hack to transition over to multiple accounts per user
|
||||
# We should be fetching the current account user relationship here.
|
||||
@user.administrator?
|
||||
end
|
||||
|
||||
def update?
|
||||
# FIXME : temporary hack to transition over to multiple accounts per user
|
||||
# We should be fetching the current account user relationship here.
|
||||
@user.administrator?
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user