mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-24 23:15:11 +00:00
- Extended CsatSurveyResponsePolicy to support report_manage permission - Added enterprise extension module following existing pattern - Users with report_manage custom role can now access CSAT index, metrics, and download - Added comprehensive tests for both base and enterprise policy behavior
16 lines
289 B
Ruby
16 lines
289 B
Ruby
class CsatSurveyResponsePolicy < ApplicationPolicy
|
|
def index?
|
|
@account_user.administrator?
|
|
end
|
|
|
|
def metrics?
|
|
@account_user.administrator?
|
|
end
|
|
|
|
def download?
|
|
@account_user.administrator?
|
|
end
|
|
end
|
|
|
|
CsatSurveyResponsePolicy.prepend_mod_with('CsatSurveyResponsePolicy')
|