modx maxigallery security

Is there a way to limit which web managers can upload/delete images from a maxigallery gallery?
LVL 10
victornegriAsked:
Who is Participating?
 
victornegriConnect With a Mentor Author Commented:
Answered my own question.

Added the following:

/httpdocs/manager/includes/header.inc.php
      - added $_SESSION['userid'] = $modx->getLoginUserID();

/httpdocs/assets/snippets/maxigallery/maxigallery.php
      - added if ($_SESSION['userid']==1) { } around the area where the manage gallery button appears.
0
All Courses

From novice to tech pro — start learning today.