mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-10-31 01:08:26 +00:00 
			
		
		
		
	Implement permissions in AsyncUploadVoter.php
This commit is contained in:
		| @@ -36,6 +36,13 @@ final class AsyncUploadVoter extends Voter | ||||
|             return false; | ||||
|         } | ||||
|  | ||||
|         //TODO get the StoredObject from the SignedUrl | ||||
| /*        match($subject->method) { | ||||
|             'GET' => $this->security->isGranted('SEE', $storedObject), | ||||
|             'PUT' => $this->security->isGranted('EDIT', $storedObject), | ||||
|             'POST' => $this->security->isGranted('ROLE_USER') || $this->security->isGranted('ROLE_ADMIN') | ||||
|         };*/ | ||||
|  | ||||
|         return $this->security->isGranted('ROLE_USER') || $this->security->isGranted('ROLE_ADMIN'); | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user