Fix access check bug

This commit is contained in:
Ari Timonen 2015-06-22 00:43:16 +03:00 committed by simplefl
parent e2348ec63f
commit 02d416bcf0

View file

@ -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