Remove user variable assignment

This commit is contained in:
Romain Neutron
2012-09-28 17:56:00 +02:00
parent 87c00ee4fb
commit 0565bce475
65 changed files with 274 additions and 509 deletions

View File

@@ -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;
}