Revolution: Trash manager context menu only working for sudo user

Created on 6 Feb 2019  路  3Comments  路  Source: modxcms/revolution

Bug report

Summary

Context menu to "Purge" or "Restore" single resource inside trash manager is not working when user doesn't have the sudo flag.

Step to reproduce

  • Create a new user group
  • Assign Administrator Policy access policy with all permissions enabled
  • Assign new user but make sure to uncheck sudo flag
  • Delete resource
  • Switch to trash manager
  • Try right click on a deleted resource

Observed behavior

Context menu is not showing up via right click.

Expected behavior

Context menu should be visible via right click.

Environment

MODX 2.7.0 advanced

  • When adding the sudo flag to this user, the context menu is showing up as expected.
bug area-core

Most helpful comment

I will fix this

All 3 comments

The problem is (as I understand) in line 130 , file \core\model\modx\processors\resource\trash\getlist.class.php
$canEdit = $this->modx->hasPermission('edit');
I can't find permission EDIT, we have only SAVE
Thats why clients do not see context menu on _manager/?a=resource/trash_ page

I will fix this

Fixed #15482

Was this page helpful?
0 / 5 - 0 ratings