Skip to content

Commit cc77936

Browse files
committed
fix(dashboard-banners): Add ignore permissions flag to dismissal query
This was intentional because there was a 403 Permission Error being thrown which prevented the user from dismissing the Cluster scoped banners while dismissals for other scopes seemed to be working. Not sure why. No doctype level role permission updates or has_permission overrides seemed to help in any way. Will investigate this further but pushing this workaround for now.
1 parent fcb823f commit cc77936

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

press/api/account.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1490,7 +1490,7 @@ def dismiss_banner(banner_name):
14901490
"parent": banner_name,
14911491
},
14921492
)
1493-
banner.save()
1493+
banner.save(ignore_permissions=True)
14941494
return True
14951495
return False
14961496

0 commit comments

Comments
 (0)