From f4b271993953c09b43efa42f38cb4efa576bdda4 Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Wed, 30 Dec 2020 14:25:42 +0200 Subject: [PATCH] Update reponse model --- src/Appwrite/Utopia/Response/Model/Func.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Appwrite/Utopia/Response/Model/Func.php b/src/Appwrite/Utopia/Response/Model/Func.php index e72dd067b1..8802c56dec 100644 --- a/src/Appwrite/Utopia/Response/Model/Func.php +++ b/src/Appwrite/Utopia/Response/Model/Func.php @@ -15,6 +15,12 @@ class Func extends Model 'description' => 'Function ID.', 'example' => '5e5ea5c16897e', ]) + ->addRule('$permissions', [ + 'type' => Response::MODEL_PERMISSIONS, + 'description' => 'Function permissions.', + 'example' => new \stdClass, + 'array' => false, + ]) ->addRule('name', [ 'type' => self::TYPE_STRING, 'description' => 'Function name.',