Archived
1
0
Fork 0

minor fixes.

This commit is contained in:
Henrik Hautakoski 2018-06-25 12:42:38 +02:00
parent 7db774aa46
commit e41c7f776a
No known key found for this signature in database
GPG key ID: 839F3A7EAFAEAFAA
2 changed files with 4 additions and 2 deletions

View file

@ -10,7 +10,7 @@ use Httpcb\Acl;
class AclListener extends Plugin 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. // We only have two roles for now, authenticated users and guests.
if ($this->auth->hasIdentity()) { if ($this->auth->hasIdentity()) {
@ -47,5 +47,7 @@ class AclListener extends Plugin
// Return false to stop the dispatch loop. // Return false to stop the dispatch loop.
return false; return false;
} }
return true;
} }
} }

View file

@ -255,7 +255,7 @@ class User extends Model
* Find the first user by Username or Email * Find the first user by Username or Email
* *
* @param string $value * @param string $value
* @return User|bool * @return \Phalcon\Mvc\Model
*/ */
static public function findFirstByUsernameOrEmail($value) static public function findFirstByUsernameOrEmail($value)
{ {