Fix security issues with teams
This commit is contained in:
parent
3ddd9f753c
commit
6350b32a3d
4 changed files with 16 additions and 7 deletions
|
@ -74,6 +74,7 @@ module ApplicationHelper
|
|||
def search_autocomplete_source
|
||||
projects = current_user.authorized_projects.map { |p| { label: "project: #{p.name_with_namespace}", url: project_path(p) } }
|
||||
groups = current_user.authorized_groups.map { |group| { label: "group: #{group.name}", url: group_path(group) } }
|
||||
teams = current_user.authorized_teams.map { |team| { label: "team: #{team.name}", url: team_path(team) } }
|
||||
|
||||
default_nav = [
|
||||
{ label: "My Profile", url: profile_path },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue