mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-28 13:31:06 +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
|
end
|
||||||
|
|
||||||
def can_update? cuser
|
def can_update? cuser
|
||||||
cuser and is_leader? cuser or cuser.admin?
|
cuser and (is_leader? cuser or cuser.admin?)
|
||||||
end
|
end
|
||||||
|
|
||||||
def can_destroy? cuser
|
def can_destroy? cuser
|
||||||
|
|
Loading…
Reference in a new issue