mirror of
				https://github.com/Mibew/mibew.git
				synced 2025-10-27 00:36:52 +03:00 
			
		
		
		
	Make possible to remove first user (Fixes #210)
This commit is contained in:
		
							parent
							
								
									bc39c22c29
								
							
						
					
					
						commit
						3ec1610fff
					
				| @ -114,8 +114,6 @@ class ManagementController extends AbstractController | ||||
|             $operator = operator_by_id($operator_id); | ||||
|             if (!$operator) { | ||||
|                 throw new NotFoundException('The operator is not found.'); | ||||
|             } elseif ($operator['vclogin'] == 'admin') { | ||||
|                 $errors[] = getlocal("Cannot remove operator \"admin\"."); | ||||
|             } | ||||
|         } | ||||
| 
 | ||||
| @ -155,8 +153,6 @@ class ManagementController extends AbstractController | ||||
|             $operator = operator_by_id($operator_id); | ||||
|             if (!$operator) { | ||||
|                 throw new NotFoundException('The operator is not found.'); | ||||
|             } elseif ($operator['vclogin'] == 'admin') { | ||||
|                 $errors[] = getlocal('Cannot disable "admin".'); | ||||
|             } | ||||
|         } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user