Cross Reference: team_users_controller.rb
xref
: /
ontohub
/
app
/
controllers
/
team_users_controller.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
team_users_controller.rb revision be6eb5d7ea1888f2f835fe0fff358f72572afeb4
#
# Managing users of a team, only accessible by team admins
#
class
TeamUsersController
<
PrivilegeList
::
Base
belongs_to
:
team
protected
def
permission_list
@
permission_list
||=
PermissionList.new
[
parent
, :
team_users
],
:
model
=>
TeamUser
,
:
collection
=>
collection
,
:
association
=> :
user
,
:
scope
=>
User
end
def
authorize_parent
authorize
! :
edit
,
parent
end
end