mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Remove user variable assignment
This commit is contained in:
@@ -215,13 +215,7 @@ class eventsmanager_notify_validationdone extends eventsmanager_notifyAbstract
|
||||
return false;
|
||||
}
|
||||
|
||||
try {
|
||||
$user = $this->app['phraseanet.user'];
|
||||
} catch (Exception $e) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($user->ACL()->has_right('push')) {
|
||||
if ($this->app['phraseanet.user']->ACL()->has_right('push')) {
|
||||
$bool = true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user