diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-09-20 21:48:58 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-09-20 21:48:58 +0300 |
commit | 6f558121b45f705624b76c2ba39491dc72810c13 (patch) | |
tree | 50306de202c113cb5601766fb6c89cf64e9bd3f1 /app/models | |
parent | b7b41d1f68bf30f9d115bc6687f6762a78a546af (diff) |
Fix a logic error in ProjectTeam#fetch_invited_members
We were calling `.where` and `.send` on the relation, but never doing
anything with the return value, resulting in proper access-level
filtering never being of any consequence.
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/project_team.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/project_team.rb b/app/models/project_team.rb index e8606c8c2c6..04f4fa849c4 100644 --- a/app/models/project_team.rb +++ b/app/models/project_team.rb @@ -248,9 +248,9 @@ class ProjectTeam # group access is developers we need to provide # both group master, developers as devs if int_level == group_link.group_access - im.where("access_level >= ?)", group_link.group_access) + im = im.where("access_level >= ?", group_link.group_access) else - im.send(level) + im = im.send(level) end end |