A3M icon indicating copy to clipboard operation
A3M copied to clipboard

rel_account_role_model.php bug : fix included

Open cwingrav opened this issue 9 years ago • 1 comments

lines 27 & 28 refer to a table 'a3m_rel_account_role_model' but should be 'a3m_rel_account_role'. Two quick edits and it functions properly. Thanks!

//$this->db->join('a3m_acl_role', 'a3m_rel_account_role_model.role_id = a3m_acl_role.id');
//$this->db->where("a3m_rel_account_role_model.account_id = $account_id AND a3m_acl_role.suspendedon IS NULL");
$this->db->join('a3m_acl_role', 'a3m_rel_account_role.role_id = a3m_acl_role.id');
$this->db->where("a3m_rel_account_role.account_id = $account_id AND a3m_acl_role.suspendedon IS NULL");

cwingrav avatar Mar 21 '15 18:03 cwingrav

I'm guessing this is something in v1? I think I remember fixing something like that in the v2 branch.

StorytellerCZ avatar Mar 25 '15 06:03 StorytellerCZ