Fix access check bug

This commit is contained in:
Ari Timonen 2015-06-22 00:43:16 +03:00
parent 1526aba255
commit 04e572bb55

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