storyicon / grbac Goto Github PK
View Code? Open in Web Editor NEW👮 grbac is a fast, elegant and concise RBAC(role-based access control) framework
License: Apache License 2.0
👮 grbac is a fast, elegant and concise RBAC(role-based access control) framework
License: Apache License 2.0
支持修改规则,规则保存吗?感觉不是很好弄。
我因为看到里面有authorized_roles这个字段不是可以直接判断出是否可以访问此URL了吗,想问下加一个forbidden_roles的意义是什么?
I used gin-swagger to gen swagger through comments. This is very convenient.
I expect there could gen grbac json through comments as well, to simplify the config.
Line 157 in a046173
runCronTab
, so I hope loader
can tell Controller
to stop reload
, like
func (c *Controller) reload() error {
if c.loader == nil {
return ErrUndefinedLoader
}
rules, err := c.loader()
if err != nil {
if errors.Is(err, ErrRulesNoChanged) {
return nil
}
return err
}
// ...
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.