Fix access check bug

This commit is contained in:
Ari Timonen 2015-06-22 00:43:16 +03:00 committed by simplefl
parent 75dfb48026
commit 748fbdb151

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