Fix security issues with teams
This commit is contained in:
parent
3ddd9f753c
commit
6350b32a3d
4 changed files with 16 additions and 7 deletions
|
@ -18,7 +18,7 @@ class DashboardController < ApplicationController
|
|||
@projects
|
||||
end
|
||||
|
||||
@teams = (UserTeam.with_member(current_user) + UserTeam.created_by(current_user)).uniq
|
||||
@teams = current_user.authorized_teams
|
||||
|
||||
@projects = @projects.page(params[:page]).per(30)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue