In data lunedì 2 dicembre 2013 16:36:07, Johnny Mariéthoz ha scritto:
> why not enrich the user_info by the list of the role that he belongs to:
> from access_control_admin import acc_get_user_roles_from_user_info,
> acc_get_role_name user_info["roles"] = [acc_get_role_name(v) for v in
> acc_get_user_roles_from_user_info(user_info)]

Well, that's quite recursive since roles are now typically defined using 
firerole rules which are based on user_info :-)

Cheers!
        Sam

-- 
Samuele Kaplun
Invenio Developer ** <http://invenio-software.org/>
INSPIRE Service Manager ** <http://inspirehep.net/>

Reply via email to