You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Check for Outdated critical extras not compatible with EVO 1.4.0
5
+
*
6
+
* @category plugin
7
+
* @version 1.4.0
8
+
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License (GPL)
9
+
* @package evo
10
+
* @author Author: Nicola Lambathakis
11
+
* @internal @events OnManagerWelcomeHome
12
+
* @internal @properties &wdgVisibility=Show widget for:;menu;All,AdminOnly,AdminExcluded,ThisRoleOnly,ThisUserOnly;All &ThisRole=Run only for this role:;string;;;(role id) &ThisUser=Run only for this user:;string;;;(username) &DittoVersion=Min Ditto version:;string;2.1.3 &MtvVersion=Min multiTV version:;string;2.0.12
13
+
* @internal @modx_category Manager and Admin
14
+
* @internal @installset base
15
+
* @internal @disabled 0
16
+
*/
17
+
18
+
// get manager role check
19
+
$internalKey = $modx->getLoginUserID();
20
+
$sid = $modx->sid;
21
+
$role = $_SESSION['mgrRole'];
22
+
$user = $_SESSION['mgrShortname'];
23
+
// show widget only to Admin role 1
24
+
if(($role!=1) AND ($wdgVisibility == 'AdminOnly')) {}
25
+
// show widget to all manager users excluded Admin role 1
26
+
else if(($role==1) AND ($wdgVisibility == 'AdminExcluded')) {}
27
+
// show widget only to "this" role id
28
+
else if(($role!=$ThisRole) AND ($wdgVisibility == 'ThisRoleOnly')) {}
29
+
// show widget only to "this" username
30
+
else if(($user!=$ThisUser) AND ($wdgVisibility == 'ThisUserOnly')) {}
31
+
else {
32
+
// get plugin id and setting button
33
+
$result = $modx->db->select('id', $this->getFullTableName("site_plugins"), "name='{$modx->event->activePlugin}' AND disabled=0");
0 commit comments