Closed MariusDoe closed 3 weeks ago
Nen ON DELETE CASCADE oder so um beim löschen der User auch gleich die permissions mitzulöschen ohne es rückwärts manuell machen zu müssen gibt es nicht so einfach bei strapi, oder?
Hatte ich auch schon geguckt, leider nicht :/
Previously, the user was deleted before the user's permissions were looked up. The removal of the user cleared the
user
column of the user's permissions toNULL
, so the lookup did not find any permissions and thus the public user (id
NULL
) received the deleted user's permissions. Now, the lookup (and deletion) of the permissions is done before the deletion of the user, which avoids this problem.