Skip to content

Commit

Permalink
issues gdpelican#282
Browse files Browse the repository at this point in the history
(Fix Admins can’t see a group set to `group owner` only visibility)
  • Loading branch information
sergei-porfenovich committed Aug 14, 2019
1 parent b550041 commit 6e5ef45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/group.rb
@@ -1,6 +1,6 @@
class ::Group
@@visible_group_scope = method(:visible_groups).clone
scope :visible_groups, ->(user, order = nil, opts = {}) {
@@visible_group_scope.call(user, order, opts).where.not(visibility_level: 4)
@@visible_group_scope.call(user, order, opts)
}
end

0 comments on commit 6e5ef45

Please sign in to comment.