Airship\Engine\Bolt\Security::getActiveUserId PHP Method

getActiveUserId() public method

Get the current user ID. Throws a UserNotLoggedIn exception if you aren't logged in.
public getActiveUserId ( ) : integer
return integer
    public function getActiveUserId() : int
    {
        if (empty($_SESSION['userid'])) {
            throw new UserNotLoggedIn(\trk('errors.security.not_authenticated'));
        }
        return (int) $_SESSION['userid'];
    }