新手问题 authority 的使用方法是不是给每个 model 定义个 authorizer?

kingwkb · June 26, 2013 · Last by fanix replied at June 29, 2013 · 2096 hits

a

如果你的代码抽象得非常一致,其实只用 default 就可以了,然后对那些特殊的方法单独写 authorizer 即可。参考:https://github.com/nathanl/authority#default-methods

You need to Sign in before reply, if you don't have an account, please Sign up first.