S2S: Person: Revoke: Fix bug: Forgot to delete PermitExtendResource*
This commit is contained in:
parent
476f65aece
commit
d24492bf44
1 changed files with 6 additions and 0 deletions
|
@ -1235,12 +1235,16 @@ personRevoke now recipPersonID (Verse authorIdMsig body) (AP.Revoke lus) = do
|
||||||
let extendIDs = map (permitTopicExtendLocalPermit . entityVal) extends
|
let extendIDs = map (permitTopicExtendLocalPermit . entityVal) extends
|
||||||
extendLocalIDs = map entityKey extends
|
extendLocalIDs = map entityKey extends
|
||||||
deleteWhere [PermitTopicExtendLocalId <-. extendLocalIDs]
|
deleteWhere [PermitTopicExtendLocalId <-. extendLocalIDs]
|
||||||
|
deleteWhere [PermitTopicExtendResourceLocalPermit <-. extendIDs]
|
||||||
|
deleteWhere [PermitTopicExtendResourceRemotePermit <-. extendIDs]
|
||||||
deleteWhere [PermitTopicExtendId <-. extendIDs]
|
deleteWhere [PermitTopicExtendId <-. extendIDs]
|
||||||
Right (_, enableID) -> do
|
Right (_, enableID) -> do
|
||||||
extends <- selectList [PermitTopicExtendRemoteTopic ==. enableID] []
|
extends <- selectList [PermitTopicExtendRemoteTopic ==. enableID] []
|
||||||
let extendIDs = map (permitTopicExtendRemotePermit . entityVal) extends
|
let extendIDs = map (permitTopicExtendRemotePermit . entityVal) extends
|
||||||
extendRemoteIDs = map entityKey extends
|
extendRemoteIDs = map entityKey extends
|
||||||
deleteWhere [PermitTopicExtendRemoteId <-. extendRemoteIDs]
|
deleteWhere [PermitTopicExtendRemoteId <-. extendRemoteIDs]
|
||||||
|
deleteWhere [PermitTopicExtendResourceLocalPermit <-. extendIDs]
|
||||||
|
deleteWhere [PermitTopicExtendResourceRemotePermit <-. extendIDs]
|
||||||
deleteWhere [PermitTopicExtendId <-. extendIDs]
|
deleteWhere [PermitTopicExtendId <-. extendIDs]
|
||||||
deleteBy $ UniquePermitPersonSendDelegator gestureID
|
deleteBy $ UniquePermitPersonSendDelegator gestureID
|
||||||
case topicAndEnable of
|
case topicAndEnable of
|
||||||
|
@ -1267,6 +1271,8 @@ personRevoke now recipPersonID (Verse authorIdMsig body) (AP.Revoke lus) = do
|
||||||
case extend of
|
case extend of
|
||||||
Left k -> delete k
|
Left k -> delete k
|
||||||
Right k -> delete k
|
Right k -> delete k
|
||||||
|
deleteBy $ UniquePermitTopicExtendResourceLocal extendID
|
||||||
|
deleteBy $ UniquePermitTopicExtendResourceRemote extendID
|
||||||
delete extendID
|
delete extendID
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue