[系统用户]实现基础的权限校验

This commit is contained in:
GoEdgeLab
2020-12-02 23:47:50 +08:00
parent 02f6638963
commit 47335d2894
16 changed files with 191 additions and 53 deletions

View File

@@ -1,6 +1,7 @@
package admins
import (
"github.com/TeaOSLab/EdgeAdmin/internal/configloaders"
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/actionutils"
"github.com/TeaOSLab/EdgeCommon/pkg/rpc/pb"
)
@@ -20,5 +21,12 @@ func (this *DeleteAction) RunPost(params struct {
return
}
// 通知更改
err = configloaders.NotifyAdminModuleMappingChange()
if err != nil {
this.ErrorPage(err)
return
}
this.Success()
}