From 228b2ec506c240edfede7237791ef8ff1fa1a99b Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Wed, 24 Jun 2020 09:41:00 +0300 Subject: [PATCH] Updated session --- src/Appwrite/Utopia/Response/Model/Session.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Appwrite/Utopia/Response/Model/Session.php b/src/Appwrite/Utopia/Response/Model/Session.php index ccbed6536d..a35703654d 100644 --- a/src/Appwrite/Utopia/Response/Model/Session.php +++ b/src/Appwrite/Utopia/Response/Model/Session.php @@ -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; } } \ No newline at end of file