Skip to content
This repository

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

Closed
arjan opened this Issue September 05, 2011 · 2 comments

2 participants

Arjan Scherpenisse Andreas Stenius
Arjan Scherpenisse
Owner

From http://code.google.com/p/zotonic/issues/detail?id=179

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}]}

Andreas Stenius
Owner

This ought to be fixed.

Arjan Scherpenisse arjan closed this issue from a commit December 11, 2012
Arjan Scherpenisse mod_acl_simple_roles: Remove reference to institution category
Institution is not part of the default domain model.

Fixes #184
4746167
Arjan Scherpenisse arjan closed this in 4746167 December 11, 2012
Andreas Stenius
Owner

:+1: :)

Mawuli Adzaku mawuli-ypa referenced this issue from a commit in mawuli-ypa/zotonic December 11, 2012
Arjan Scherpenisse mod_acl_simple_roles: Remove reference to institution category
Institution is not part of the default domain model.

Fixes #184
b00eef4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.