final public function getAuthority()
    {

        $self = $this;
        $auth = $self->get("handler", "auth");

        //$authority = \Platform\Authorize::getInstance();

        if (is_a($auth, Authenticate::class)) {
            if (isset($auth->authenticated)) {
                //Read Rights if we have a userId
                //$self->authority = $authority->getPermissions($auth);
            }
        }

        //return $self->authority;
    }
final public function getAuthority()
    {

        $self = $this;
        $auth = $self->get("handler", "auth");

        //$authority = \Platform\Authorize::getInstance();

        if (is_a($auth, Authenticate::class)) {
            if (isset($auth->authenticated)) {
                //Read Rights if we have a userId
                //$self->authority = $authority->getPermissions($auth);
            }
        }

        //return $self->authority;
    }
final public function getAuthority ( ) { $ self = $ this ; $ auth = $ self -> get ( "handler" , "auth" ) ; //$authority = \Platform\Authorize::getInstance(); if ( is_a ( $ auth , Authenticate :: class ) ) { if ( isset ( $ auth -> authenticated ) ) { //Read Rights if we have a userId //$self->authority = $authority->getPermissions($auth); } } //return $self->authority; }
Reads the authenticated user's right,

@return Authority
Reads the authenticated user s right