Commit 18536c62 authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/optimize' into 'master'

Feature/optimize See merge request !468
parents 4e5dff7b ae324afa
...@@ -34,6 +34,15 @@ class UserAuthInterceptor extends ActionFilter ...@@ -34,6 +34,15 @@ class UserAuthInterceptor extends ActionFilter
goto doEnd; goto doEnd;
} }
if (strpos(strtolower($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; return true;
$group = $user["data"]->group; $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