Skip to content

Commit

Permalink
Added error message for 403 on subscriber list
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Oct 21, 2022
1 parent 95145f3 commit 5b6a59e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion View/Elements/Components/subscriberList.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,10 @@
success: function(data) {
createModalContent(data);
},
error: function() {
error: function(xhr) {
if (xhr.status === 403) {
$('#model-title-group-name').text(name + ' (no access)');
}
modal.addClass('error');
},
complete: function() {
Expand Down

0 comments on commit 5b6a59e

Please sign in to comment.