Cross Reference: permissions_controller.rb
xref
: /
ontohub
/
app
/
controllers
/
permissions_controller.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
permissions_controller.rb revision 95cb759dc990efae933531ee5c54d476bb13d8e9
70
N/A
#
70
N/A
# Permissions list administration of permissions for a repository
1104
N/A
#
70
N/A
class
PermissionsController
<
PrivilegeList
::
Base
70
N/A
919
N/A
belongs_to
:
repository
,
finder
: :
find_by_path
!
919
N/A
919
N/A
def
destroy
919
N/A
destroy
!
do
919
N/A
redirect_to
(:
back
)
and
return
919
N/A
end
919
N/A
rescue
Permission
::
PowerVaccuumError
=> e
919
N/A
flash
[:
alert
] =
e.message
919
N/A
redirect_to
:
back
919
N/A
end
919
N/A
919
N/A
def
update
919
N/A
super
919
N/A
rescue
ActiveRecord
::
RecordInvalid
=> e
919
N/A
render
text
:
e.message
919
N/A
end
919
N/A
70
N/A
protected
70
N/A
70
N/A
def
relation_list
70
N/A
@
relation_list
||=
RelationList.new
[
parent
, :
permissions
],
851
N/A
:
model
=>
Permission
,
851
N/A
:
collection
=>
collection
,
851
N/A
:
association
=> :
subject
,
851
N/A
:
scope
=> [
User
,
Team
]
851
N/A
end
98
N/A
551
N/A
def
authorize_parent
321
N/A
authorize
! :
permissions
,
parent
321
N/A
end
550
N/A
550
N/A
end
213
N/A