GitLab wurde erfolgreich aktualisiert. Dank regelmäßiger Updates bleibt das THM GitLab sicher und Sie profitieren von den neuesten Funktionen. Danke für Ihre Geduld.

Commit dc293b56 authored by Daniel Gerhardt's avatar Daniel Gerhardt Committed by Tom Käsler

Fix before_filter for group path

parent 09096da9
......@@ -24,7 +24,7 @@ class GroupsController < Groups::ApplicationController
before_action :user_actions, only: [:show]
before_filter :validate_name, only: [:create, :update]
before_filter :validate_name, only: [:create, :update, :transfer]
skip_cross_project_access_check :index, :new, :create, :edit, :update,
......@@ -226,7 +226,7 @@ def user_actions
def validate_name
group =
unless group.path.empty? || group.path.length > 4 || current_user.admin?
unless !group.path || group.path.empty? || group.path.length > 4 || current_user.admin?[:alert] = 'Path must have at least a length of 5.'
if action_name == 'update'
render action: 'edit'
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