mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
Implement permissions in AsyncUploadVoter.php
This commit is contained in:
parent
ac2f314395
commit
5b0babb9b0
@ -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');
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user