Browse Source

Update AbstractPM.php

Add PM shutdown warning.
Visman 3 years ago
parent
commit
f73824178f
1 changed files with 4 additions and 0 deletions
  1. 4 0
      app/Models/Pages/PM/AbstractPM.php

+ 4 - 0
app/Models/Pages/PM/AbstractPM.php

@@ -48,6 +48,10 @@ abstract class AbstractPM extends Page
         $this->pmNavigation = $this->pmNavigation();
         $this->crumbs       = $this->crumbs(...$this->pmCrumbs);
 
+        if (1 !== $this->user->u_pm) {
+            $this->fIswev = ['w', 'PM off'];
+        }
+
         parent::prepare();
     }