From 9b153dacd8470c26ffd5544ddde42dcdaffe3bc7 Mon Sep 17 00:00:00 2001 From: Kilian Hofmann Date: Sat, 14 Aug 2021 21:44:41 +0200 Subject: [PATCH] Controller Permission --- controllers/GraphqlKey.php | 2 ++ controllers/Playground.php | 2 ++ models/graphqlkey/columns.yaml | 8 +++++--- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/controllers/GraphqlKey.php b/controllers/GraphqlKey.php index 2ba9ee5..36aa739 100644 --- a/controllers/GraphqlKey.php +++ b/controllers/GraphqlKey.php @@ -8,6 +8,8 @@ class GraphqlKey extends Controller public $listConfig = 'config_list.yaml'; + public $requiredPermissions = ['germanairlinesva.graphql.master']; + public function __construct() { parent::__construct(); diff --git a/controllers/Playground.php b/controllers/Playground.php index d12c83e..95628b7 100644 --- a/controllers/Playground.php +++ b/controllers/Playground.php @@ -9,6 +9,8 @@ class Playground extends Controller parent::__construct(); } + public $requiredPermissions = ['germanairlinesva.graphql.master']; + public function index() { $this->pageTitle = 'germanairlinesva.graphql::lang.menu.playground'; diff --git a/models/graphqlkey/columns.yaml b/models/graphqlkey/columns.yaml index 3b52c63..b106dd1 100644 --- a/models/graphqlkey/columns.yaml +++ b/models/graphqlkey/columns.yaml @@ -2,9 +2,11 @@ columns: id: label: id type: number - member_id: - label: member_id - type: number + member: + label: member + type: text + relation: member + valueFrom: name valid_from: label: valid_from type: datetime