seldon / django-flexi-auth

A simple, but flexible, role-based access-control engine for Django.
GNU Affero General Public License v3.0
1 stars 1 forks source link

Ensure that permission checkers are bound (instance- or class-) methods #11

Open seldon opened 13 years ago

seldon commented 13 years ago

The method ParamRoleBackend.has_perm() retrieves permission-checker methods (can_*) from domain models and stores them under the local variable perm_check.

Add a check to make sure that perm_check actually holds bound methods.

seldon commented 13 years ago

A useful link.