* First draft - all the big changes * Changing some more references to 'internal' * Relocate internal request tests to admin * Relocate internal system tests to admin * Fix trailing space * Test fix * Move queries from internal to admin * Docs updates * Rename internal stimuls controllers to admin (plus docs) * Rename admin layout * Fix routing after rebase * Fixes for latest added admin interfaces * Serviceworker ignore paths
13 lines
316 B
Ruby
13 lines
316 B
Ruby
module Admin
|
|
class PermissionsController < Admin::ApplicationController
|
|
layout "admin"
|
|
|
|
def index
|
|
@users = User.with_role(:admin)
|
|
.union(User.with_role(:super_admin))
|
|
.union(User.with_role(:single_resource_admin, :any))
|
|
.page(params[:page])
|
|
.per(50)
|
|
end
|
|
end
|
|
end
|