feat: Manage platform apps from Super Admin (#2129)

- ability to manage platform apps from super admin
- fixes #2021
This commit is contained in:
Sojan Jose
2021-04-20 00:01:05 +05:30
committed by GitHub
parent fa525fc107
commit ea74462209
6 changed files with 136 additions and 3 deletions

View File

@@ -57,8 +57,8 @@ class AccessTokenDashboard < Administrate::BaseDashboard
# }.freeze
COLLECTION_FILTERS = {
user: ->(resources) { resources.where(owner_type: 'User') },
super_admin: ->(resources) { resources.where(owner_type: 'SuperAdmin') },
agent_bot: ->(resources) { resources.where(owner_type: 'AgentBot') }
agent_bot: ->(resources) { resources.where(owner_type: 'AgentBot') },
platform_app: ->(resources) { resources.where(owner_type: 'PlatformApp') }
}.freeze
# Overwrite this method to customize how access tokens are displayed