@@ -38,8 +38,7 @@ |
||
38 | 38 | } |
39 | 39 | |
40 | 40 | $resource = $this instanceof \Nette\Application\IPresenter ? |
41 | - $this->getName() : |
|
42 | - static::getReflection()->getName(); |
|
41 | + $this->getName() : static::getReflection()->getName(); |
|
43 | 42 | |
44 | 43 | return $this->authorizator->isAllowed($userId, $resource, $action); |
45 | 44 | } |
@@ -77,8 +77,7 @@ |
||
77 | 77 | { |
78 | 78 | $this->user->login($values->username, $values->password); |
79 | 79 | $this->user->setExpiration(0, TRUE); |
80 | - } |
|
81 | - catch (\Nette\Security\AuthenticationException $e) |
|
80 | + } catch (\Nette\Security\AuthenticationException $e) |
|
82 | 81 | { |
83 | 82 | $failure = $e->getMessage(); |
84 | 83 | } |