diff --git a/mfazones/lib/Controller/MfazonesController.php b/mfazones/lib/Controller/MfazonesController.php index a0d2d56..c063d56 100755 --- a/mfazones/lib/Controller/MfazonesController.php +++ b/mfazones/lib/Controller/MfazonesController.php @@ -122,11 +122,18 @@ public function get(): JSONResponse $type = $this->castObjectType($node->getType()); $result = $this->tagMapper->haveTag($node->getId(), $type, $tagId); + try { + $mfa_on_parent = $this->utils->nodeOrParentHasTag($node->getParent()); + } catch (NotFoundException) { + $mfa_on_parent = false; + } + return new JSONResponse( array( 'status' => $result, 'mfa_passed' => $this->isMfaVerified(), - 'has_access' => $this->hasAccess($source) + 'has_access' => $this->hasAccess($source), + 'mfa_on_parent' => $mfa_on_parent ) ); } catch (\Exception $e) { diff --git a/mfazones/src/views/MFATab.vue b/mfazones/src/views/MFATab.vue index b806964..d6e001a 100644 --- a/mfazones/src/views/MFATab.vue +++ b/mfazones/src/views/MFATab.vue @@ -21,8 +21,9 @@

-