mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-24 15:05:03 +00:00
- Removes the portal_members table and all associated records - Updates policies to use custom roles with knowledge_base_manage permission - Updates controllers, models, and views to work without portal membership - Adds tests for the new permission model
8 lines
141 B
Ruby
8 lines
141 B
Ruby
class ReportPolicy < ApplicationPolicy
|
|
def view?
|
|
@account_user.administrator?
|
|
end
|
|
end
|
|
|
|
ReportPolicy.prepend_mod_with('ReportPolicy')
|