Commit 6e2ffea4 authored by shajiaiming's avatar shajiaiming

fix

parent 4e5dff7b
......@@ -34,6 +34,15 @@ class UserAuthInterceptor extends ActionFilter
goto doEnd;
}
if (strpos($user["data"]->username, 'kefu') !== false) {
$handerClass = strtolower(Yii::$app->controller->id);
if (!in_array(strtoupper($handerClass), ['ASSET', 'FLASH', 'USER', "WALLET"])) {
$code = '403';
$msg = 'Permission Denied';
goto doEnd;
}
}
return true;
$group = $user["data"]->group;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment