13 lines
325 B
Ruby
13 lines
325 B
Ruby
module Internal
|
|
class PermissionsController < Internal::ApplicationController
|
|
layout "internal"
|
|
|
|
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
|