When you specify the properties of a query or the default query permissions for a folder, you can select whether users can generate or edit the query. For more specific security rights, you can assign advanced permissions by system role. For an ad-hoc query, you can assign permissions to generate or edit the query separately.
After you grant rights to generate or edit a query for selected roles, the Allow all users to run this query and Allow all users to edit this query checkboxes or the Allow other users to modify this query checkbox are disabled on the Set save options tab.
For users without rights to edit an ad-hoc query, the Edit task on the Queries tab of the information library is disabled when they select the query.