Commit eb515085 authored by Stan Hu's avatar Stan Hu

Properly fallback to current user in namespaces helper

parent 8d22ff8c
......@@ -25,6 +25,8 @@ module NamespacesHelper
if Ability.allowed?(current_user, :read_group, extra_group)
selected = extra_group.id if selected == :extra_group
groups |= [extra_group]
else
selected = :current_user
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment