Skip to content

Instantly share code, notes, and snippets.

@scardine
Last active December 29, 2015 08:59
Show Gist options
  • Save scardine/7647178 to your computer and use it in GitHub Desktop.
Save scardine/7647178 to your computer and use it in GitHub Desktop.
Delete RT permission that causes too many options at the "Owner" select on Ticket creation screen:
-- Delete any ACL allowing everyone to own ticlets for any queue
DELETE FROM ACL WHERE id IN (
SELECT id FROM ACL WHERE RightName='OwnTicket' AND objecttype='RT::Queue' AND principalid IN (
SELECT id FROM Groups WHERE domain='SystemInternal' AND type='Everyone'
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment