fixed:gitee Issue#I37RKN
This commit is contained in:
parent
706410480b
commit
adb7ff5a03
@ -136,6 +136,10 @@ class Utils
|
|||||||
|
|
||||||
$docComment = (new \ReflectionClass($controller))->getMethod($action)->getDocComment();
|
$docComment = (new \ReflectionClass($controller))->getMethod($action)->getDocComment();
|
||||||
|
|
||||||
|
if (! $docComment) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return strpos($docComment, config('catch.permissions.method_auth_mark')) !== false;
|
return strpos($docComment, config('catch.permissions.method_auth_mark')) !== false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user