mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-11-15 09:21:25 +00:00
Fix access check bug
This commit is contained in:
parent
75dfb48026
commit
748fbdb151
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