Skip to content

Commit

Permalink
[FIX] Alerts reassignment for users without admin rights
Browse files Browse the repository at this point in the history
  • Loading branch information
whikernel committed Oct 29, 2023
1 parent 6bc963d commit 7e46d88
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/app/static/assets/js/iris/alerts.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const selectsConfig = {
name: 'customer_name'
},
alert_owner_id: {
url: '/manage/users/list',
url: '/manage/users/restricted/list',
id: 'user_id',
name: 'user_name'
},
Expand Down Expand Up @@ -1729,7 +1729,7 @@ function changeStatusAlert(alert_id, status_name) {

async function changeAlertOwner(alertId) {
// Fetch the user list from the endpoint
const usersReq = await get_request_api('/manage/users/list');
const usersReq = await get_request_api('/manage/users/restricted/list');

if (!notify_auto_api(usersReq, true)) { return; };

Expand Down Expand Up @@ -1771,7 +1771,7 @@ async function changeBatchAlertOwner(alertId) {
}

// Fetch the user list from the endpoint
const usersReq = await get_request_api('/manage/users/list');
const usersReq = await get_request_api('/manage/users/restricted/list');

if (!notify_auto_api(usersReq, true)) { return; };

Expand Down

0 comments on commit 7e46d88

Please sign in to comment.