Skip to content

Commit

Permalink
fix: change Alert Permissions (apache#16118)
Browse files Browse the repository at this point in the history
* added google alert

* reworked permissions
  • Loading branch information
AAfghahi committed Aug 9, 2021
1 parent 5ce3883 commit 606a7bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -417,7 +417,7 @@ class Header extends React.PureComponent {
const roles = Object.keys(user.roles || []);
const permissions = roles.map(key =>
user.roles[key].filter(
perms => perms[0] === 'can_add' && perms[1] === 'AlertModelView',
perms => perms[0] === 'menu_access' && perms[1] === 'Manage',
),
);
return permissions[0].length > 0;
Expand Down
Expand Up @@ -200,7 +200,7 @@ export class ExploreChartHeader extends React.PureComponent {
const roles = Object.keys(user.roles || []);
const permissions = roles.map(key =>
user.roles[key].filter(
perms => perms[0] === 'can_add' && perms[1] === 'AlertModelView',
perms => perms[0] === 'menu_access' && perms[1] === 'Manage',
),
);
return permissions[0].length > 0;
Expand Down

0 comments on commit 606a7bf

Please sign in to comment.