projects
/
manivelle-srv
/
manivelle-srv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
better way for authorizations
[manivelle-srv/manivelle-srv.git]
/
src
/
Controller
/
AppController.php
diff --git
a/src/Controller/AppController.php
b/src/Controller/AppController.php
index
a8da125
..
daed887
100644
(file)
--- a/
src/Controller/AppController.php
+++ b/
src/Controller/AppController.php
@@
-82,6
+82,10
@@
class AppController extends Controller
public function isAuthorized($user)
{
+ if ($this->request->is('get')){
+ return true;
+ }
+
// Admin peuvent accéder à chaque action
if (isset($user['role']) && $user['role'] === 'admin') {
return true;