Thursday, October 08, 2009

Usertype, GID and Article Creation

One wrinkle with Joomla's security system is this; to create an Article, the user me be at least an Author (default is Registered).

Now, this info is held both in JOS_USERS.USERTYPE and JOS_USERS.GID where the GID column references JOS_CORE_ACL_ARO_GROUPS.

Now, in the customisation work id did to the components/com_user/controller.php i was setting the user's usertype based on the value of the drop down, but the assignment of gid was based on another variable so usertype was out of step with gid so an Author couldn't create an Article. So; ensure GID is set as well

No comments: