mirror of
				https://github.com/Mibew/java.git
				synced 2025-10-31 18:41:09 +03:00 
			
		
		
		
	Forbidden editing groups from profile page, for operators without administrative permissions.
This commit is contained in:
		
							parent
							
								
									fca74ed824
								
							
						
					
					
						commit
						4f16162665
					
				| @ -44,8 +44,7 @@ $page['groups'] = get_all_groups($link); | ||||
| close_connection($link); | ||||
| $errors = array(); | ||||
| 
 | ||||
| $canmodify = ($opId == $operator['operatorid'] && is_capable($can_modifyprofile, $operator)) | ||||
| 			 || is_capable($can_administrate, $operator); | ||||
| $canmodify = is_capable($can_administrate, $operator); | ||||
| 
 | ||||
| $op = operator_by_id($opId); | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user