Add context menu to AdminMenu PlayerTab entries (#5904)
* XAML PlayerTab entries * Move command execution to PlayerTab * Move command logic to the AdminSystem * Clean up * Add examine and context menu keybind handling to PlayerTab * Fix remote admin verbs * Remove examine for now * Add server verbs * Fix requests of verb by non-admins * Clean up AdminSystem.Menu
This commit is contained in:
@@ -51,7 +51,7 @@ namespace Content.Shared.Verbs
|
||||
bool canAccess = false;
|
||||
if (force || target == user)
|
||||
canAccess = true;
|
||||
else if (_interactionSystem.InRangeUnobstructed(user, target, ignoreInsideBlocker: true))
|
||||
else if (EntityManager.EntityExists(target) && _interactionSystem.InRangeUnobstructed(user, target, ignoreInsideBlocker: true))
|
||||
{
|
||||
if (user.IsInSameOrParentContainer(target))
|
||||
canAccess = true;
|
||||
|
||||
Reference in New Issue
Block a user