minor fixes.
This commit is contained in:
parent
7db774aa46
commit
e41c7f776a
2 changed files with 4 additions and 2 deletions
|
|
@ -10,7 +10,7 @@ use Httpcb\Acl;
|
|||
|
||||
class AclListener extends Plugin
|
||||
{
|
||||
public function beforeExecuteRoute(Event $event, Dispatcher $dispatcher)
|
||||
public function beforeExecuteRoute(Event $event, Dispatcher $dispatcher) : bool
|
||||
{
|
||||
// We only have two roles for now, authenticated users and guests.
|
||||
if ($this->auth->hasIdentity()) {
|
||||
|
|
@ -47,5 +47,7 @@ class AclListener extends Plugin
|
|||
// Return false to stop the dispatch loop.
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -255,7 +255,7 @@ class User extends Model
|
|||
* Find the first user by Username or Email
|
||||
*
|
||||
* @param string $value
|
||||
* @return User|bool
|
||||
* @return \Phalcon\Mvc\Model
|
||||
*/
|
||||
static public function findFirstByUsernameOrEmail($value)
|
||||
{
|
||||
|
|
|
|||
Reference in a new issue