Skip to content
Snippets Groups Projects
Commit 51bcd7c3 authored by Jared Hancock's avatar Jared Hancock
Browse files

staff: Fixup ::canManageTickets() to support non-global perms

parent b7091391
No related branches found
No related tags found
No related merge requests found
......@@ -419,9 +419,10 @@ implements AuthenticatedUser, EmailContact, TemplateVariable {
}
function canManageTickets() {
return ($this->isAdmin()
|| $this->hasPerm(TicketModel::PERM_DELETE)
|| $this->hasPerm(TicketModel::PERM_CLOSE));
return $this->hasPerm(TicketModel::PERM_DELETE, false)
|| $this->hasPerm(TicketModel::PERM_TRANSFER, false)
|| $this->hasPerm(TicketModel::PERM_ASSIGN, false)
|| $this->hasPerm(TicketModel::PERM_CLOSE, false);
}
function isManager() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment