mirror of
https://github.com/lingble/chatwoot.git
synced 2025-10-29 18:22:53 +00:00
* Feature: API for updating account settings - API to update account locale - API to update account name - API to show account info
14 lines
433 B
Ruby
14 lines
433 B
Ruby
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
|