mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Updated session
This commit is contained in:
@@ -9,6 +9,13 @@ class Session extends Model
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
$this->addRule('roles', [
|
||||
'type' => 'string',
|
||||
'description' => 'User list of roles',
|
||||
'default' => [],
|
||||
'example' => [],
|
||||
'array' => true,
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -28,6 +35,6 @@ class Session extends Model
|
||||
*/
|
||||
public function getType():string
|
||||
{
|
||||
return Response::MODEL_LOCALE;
|
||||
return Response::MODEL_SESSION;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user