diff --git a/app/models/team.rb b/app/models/team.rb index a427900..8715593 100644 --- a/app/models/team.rb +++ b/app/models/team.rb @@ -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