We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70ac304 commit 7bd2991Copy full SHA for 7bd2991
plugins/identity/app/controllers/identity/projects/role_assignments_controller.rb
@@ -30,6 +30,13 @@ def update
30
new_roles = params[:roles]
31
new_role_assignments = []
32
33
+ begin
34
+ URI.parse(user_id)
35
+ rescue URI::InvalidURIError
36
+ render json: { errors: "Invalid user Name/ID format, do not use special characters" }
37
+ return
38
+ end
39
+
40
# render empty list if no project id provided
41
render json: { roles: [] } && return if scope_project_id.blank?
42
0 commit comments