|
@@ -44,7 +44,11 @@ class IsGrantedPreviousAdminExtension extends \Twig_Extension
|
|
*/
|
|
*/
|
|
public function isGrantedPreviousAdmin()
|
|
public function isGrantedPreviousAdmin()
|
|
{
|
|
{
|
|
- return $this->webservice->makeGetRequest($this->urlBase . '/admin/user/is_granted');
|
|
|
|
|
|
+ try {
|
|
|
|
+ return $this->webservice->makeGetRequest($this->urlBase . '/admin/user/is_granted');
|
|
|
|
+ } catch (\Exception $e) {
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|