Add cascade delete to PortalPermissions table#6477
Add cascade delete to PortalPermissions table#6477valadas merged 1 commit intodnnsoftware:developfrom
Conversation
|
I was not able to reproduce the initial issue though, I created a child portal and a role with a user and was able to delete the portal just fine using the UI. Is there more to know about how to reproduce this issue ? |
|
This is about portal permissions, which were added in 9.11 via #5103. There was not a UI added to manage these yet, so you need to add them via SQL. @DanielBolef do you happen to have an example SQL query to add a permission? |
|
Yeah, this should do it: That works for the real case I was encountering, but the same issue exists for User based Portal Permissions. In my testing while creating the above SQL, I found that the bug still exists when Users have Portal Permissions on the Portal to be deleted. This is due to the fact that Users are not deleted (I think, only UserPortals are deleted?) when a Portal is deleted, so no cascade path exists to clean up the Portal Permission. I tried adding a cascade delete for the PortalId as well, but I get a |
Fixes #6434
Summary
Add cascade delete to PortalPermissions table