When restoring an organisation that was rejected, revert the approval request as well
This commit is contained in:
1 parent
016f7489c4
commit
f4fba338c5
2 files changed
+32
No files matched your search
@@ -593,6 +593,10 @@ class OrganisationController extends SimpleController
|
||||
|
||||
// Begin transaction - DB will be rolled back if an exception occurs
|
||||
Capsule::transaction(function () use ($organisation, $currentUser) {
|
||||
if (!$organisation->flag_approved) {
|
||||
$verification = $this->ci->repoOrganisationApproval->revert($organisation);
|
||||
}
|
||||
|
||||
$organisation->restore();
|
||||
|
||||
// Create activity record
|
||||
|
||||
Reference in new issue
Block a user