06-30-2016, 02:02 PM
Hello!
I'm using UserSpice for about a month now, making some changes (will post later in the "Modifications and Hackery") and I found something that I want to share with you guys.
The problem is if you delete an user, can happen that it won't delete the permission_matches/profile entries.
In the us_helpers.php we have a method for deletion of users, in the queries you find:
$query1 = $db->query("DELETE FROM users WHERE id = ?",array($id));
$query2 = $db->query("DELETE FROM user_permission_matches WHERE id = ?",array($id));
$query3 = $db->query("DELETE FROM profiles WHERE id = ?",array($id));
But, for the query2/query3 I think it should be "user_id", instead of just "id".
The version of UserSpice that I'm using is 4.1.2.
I liked a lot UserSpice and also learned a lot with the codes of it! Please keep up with this good work!
PS: Sorry about my english, it's not my first language. Greetings from Brazil. o/
Regards,
Rukichirimoshi
I'm using UserSpice for about a month now, making some changes (will post later in the "Modifications and Hackery") and I found something that I want to share with you guys.
The problem is if you delete an user, can happen that it won't delete the permission_matches/profile entries.
In the us_helpers.php we have a method for deletion of users, in the queries you find:
$query1 = $db->query("DELETE FROM users WHERE id = ?",array($id));
$query2 = $db->query("DELETE FROM user_permission_matches WHERE id = ?",array($id));
$query3 = $db->query("DELETE FROM profiles WHERE id = ?",array($id));
But, for the query2/query3 I think it should be "user_id", instead of just "id".
The version of UserSpice that I'm using is 4.1.2.
I liked a lot UserSpice and also learned a lot with the codes of it! Please keep up with this good work!
PS: Sorry about my english, it's not my first language. Greetings from Brazil. o/
Regards,
Rukichirimoshi