mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 04:51:14 +00:00
Fix access check bug
This commit is contained in:
parent
e2348ec63f
commit
02d416bcf0
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ class Team < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def can_update? cuser
|
||||
cuser and is_leader? cuser or cuser.admin?
|
||||
cuser and (is_leader? cuser or cuser.admin?)
|
||||
end
|
||||
|
||||
def can_destroy? cuser
|
||||
|
|
Loading…
Reference in a new issue