mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-05-09 08:31:01 +00:00
Fix access check bug
This commit is contained in:
parent
7041c0bbe5
commit
7b9bb64b8b
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