Fix few bugs and tests after refactoring ownership logic
This commit is contained in:
parent
00a1f5bc2c
commit
d431e43392
19 changed files with 58 additions and 61 deletions
|
@ -1,6 +1,6 @@
|
|||
module NamespacesHelper
|
||||
def namespaces_options(selected = :current_user, scope = :default)
|
||||
groups = current_user.namespaces.select {|n| n.type == 'Group'}
|
||||
groups = current_user.owned_groups.select {|n| n.type == 'Group'}
|
||||
|
||||
users = if scope == :all
|
||||
Namespace.root
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue