digideskio / zotonic

Automatically exported from code.google.com/p/zotonic
0 stars 0 forks source link

ACL Simple roles complains on activation because of missing category. #179

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
In the changeset for mod_acl_simple_roles.erl on {acl_role, institution} was 
added at line 415. Institution does not exist though, so the module complains 
on activation, but seems to work apart from that.

{predicates,
[{acl_role_member,
[{title, <<"ACL Role Member">>}],
[{acl_role, person}, {acl_role, institution}]
}]
},

Error:

** Reason for termination == 
** {{badmatch,{error,{unknown_rsc,institution}}},
    [{m_rsc,name_to_id_check,2},
     {z_datamodel,manage_predicate_validfor,3},
     {z_datamodel,manage_predicate,3},
     {z_datamodel,'-manage/3-lc$^1/1-1-',3},
     {z_datamodel,manage,3},
     {z_module_dummy,handle_cast,2},
     {gen_server,handle_msg,5},
     {proc_lib,init_p_do_apply,3}]}

Original issue reported on code.google.com by connor...@gmail.com on 9 Jun 2011 at 3:48