mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-26 12:30:48 +00:00
Fix access check bug
This commit is contained in:
parent
1526aba255
commit
04e572bb55
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