Giter Club home page Giter Club logo

atfield's People

Contributors

milkfr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

atfield's Issues

对document需要有最小粒度的控制,求老司机指导

在我厂的一个小项目中需要实现类似的RBAC权限控制,我使用的也是这套类似的方案,但是不如老司机的方案来的优雅,但是功能还是发现有缺失,比如有10个文档,需要对用户XX授予只能访问1,但是可以删除2,3这种情况,用我的方法后发现这种方案不能继承,也就是说资源和功能和用户这三种还不能做到绑定,如果对文档2.3授予了删除的权限,文档1的话也有这个权限

求老司机指导,如何才能将用户,资源和功能完美的结合? 谢谢

疑问

这种分布式漏扫 有什么好方法去调整单个任务的qps呢

注册用户失败

python manager.py shell 然后
u = User(email='[email protected]', password='123', role_id=1)
之后提交到数据库报错

IntegrityError: (_mysql_exceptions.IntegrityError) (1452, 'Cannot add or update a child row: a foreign key constraint fails (`permi`.`users`, CONSTRAINT `users_ibfk_1` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`))') [SQL: u'INSERT INTO users (email, password_hash, role_id) VALUES (%s, %s, %s)'] [parameters: ('[email protected]', 'pbkdf2:sha1:1000$FkRfKdVm$8f5a82e669377e22a3ab7ca5849571e1b28f2911', 1)]
出错

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.