Skip to content
This repository was archived by the owner on Apr 27, 2022. It is now read-only.

Commit d047725

Browse files
committed
fix action check access bug
1 parent 8717a24 commit d047725

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GraphQLAction.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function getGraphQLActions()
102102
$ret = array_merge($this->schemaArray[0], $this->schemaArray[1]);
103103
if (!$this->authActions) {
104104
//init
105-
$this->authActions = array_keys(array_merge($this->schemaArray[0], $this->schemaArray[1]));
105+
$this->authActions = array_merge($this->schemaArray[0], $this->schemaArray[1]);
106106
}
107107
return $ret;
108108
}
@@ -123,7 +123,7 @@ public function run()
123123
{
124124
Yii::$app->response->format = Response::FORMAT_JSON;
125125
if ($this->authActions && $this->checkAccess) {
126-
foreach ($this->authActions as $childAction) {
126+
foreach ($this->authActions as $childAction => $class) {
127127
call_user_func($this->checkAccess, $childAction);
128128
}
129129
}

0 commit comments

Comments
 (0)