mirror of https://github.com/h44z/wg-portal.git
				
				
				
			
							parent
							
								
									2d78fe33b8
								
							
						
					
					
						commit
						17844ed929
					
				|  | @ -319,7 +319,7 @@ func (m Manager) validateModifications(ctx context.Context, old, new *domain.Use | ||||||
| 		return fmt.Errorf("insufficient permissions") | 		return fmt.Errorf("insufficient permissions") | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	if err := old.EditAllowed(new); err != nil { | 	if err := old.EditAllowed(new); err != nil && currentUser.Id != domain.SystemAdminContextUserInfo().Id { | ||||||
| 		return errors.Join(fmt.Errorf("no access: %w", err), domain.ErrInvalidData) | 		return errors.Join(fmt.Errorf("no access: %w", err), domain.ErrInvalidData) | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue