engine
engine copied to clipboard
Allow custom primary for admin
If I use decorators and don't explicitly declare the admin
role, @acl.allowCustomPrimary()
has no effect.
This PR allows custom primary for admin always since there is no security risk involved (because it already knows about all existing ids).
I'm aware of this strange behaviour, but I'm not sure I like this solution. Also, allowing custom id by default is imho security risk.