mirror of
				https://github.com/BookStackApp/BookStack.git
				synced 2025-11-03 02:13:16 +03:00 
			
		
		
		
	Replace dots with something else on user create and edit screens
This commit is contained in:
		@@ -3,10 +3,10 @@
 | 
				
			|||||||
    @foreach($roles as $role)
 | 
					    @foreach($roles as $role)
 | 
				
			||||||
        <div>
 | 
					        <div>
 | 
				
			||||||
            @include('components.custom-checkbox', [
 | 
					            @include('components.custom-checkbox', [
 | 
				
			||||||
                'name' => $name . '[' . $role->name . ']',
 | 
					                'name' => $name . '[' . str_replace('.', 'DOT', $role->name) . ']',
 | 
				
			||||||
                'label' => $role->display_name,
 | 
					                'label' => $role->display_name,
 | 
				
			||||||
                'value' => $role->id,
 | 
					                'value' => $role->id,
 | 
				
			||||||
                'checked' => old($name . '.' . $role->name) || (!old('name') && isset($model) && $model->hasRole($role->name))
 | 
					                'checked' => old($name . '.' . str_replace('.', 'DOT', $role->name)) || (!old('name') && isset($model) && $model->hasRole($role->name))
 | 
				
			||||||
            ])
 | 
					            ])
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
    @endforeach
 | 
					    @endforeach
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user