fixed:gitee Issue#I37RKN

This commit is contained in:
JaguarJack 2021-02-08 17:28:25 +08:00
parent 706410480b
commit adb7ff5a03

View File

@ -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;
} }