- Fixed: The Logging system would add extra empty logs that would pollute the database; fixed this and then added queries in showhistory.php to clean it up
- Enhancement: Users can now belong to a single primary usergroup and multiple secondary groups, greatly increasing permission flexibility
- Enahncement: Usergroups can be cloned to allow fast duplication of permissions
+- Fixed: Even after calling UsergroupAPI::delete(), there would still be usergroup remnants in bugfieldpermission and permission tables
1.2.0 Beta 1
===============================
*/
function post_delete()
{
+ $this->registry->db->query("DELETE FROM " . TABLE_PREFIX . "permission WHERE usergroupid = " . $this->values['usergroupid']);
+ $this->registry->db->query("DELETE FROM " . TABLE_PREFIX . "bugfieldpermission WHERE usergroupid = " . $this->values['usergroupid']);
$this->registry->db->query("UPDATE " . TABLE_PREFIX . "user SET usergroupid = 2 WHERE usergroupid = " . $this->values['usergroupid']);
build_usergroups();
+ build_permissions();
build_assignedto();
}
}