chore: access restriction for lower roles (#3067)
This commit is contained in:
parent
f38278f465
commit
8041b23a63
10 changed files with 126 additions and 81 deletions
|
|
@ -60,11 +60,11 @@ export const CreateUpdatePageModal: FC<Props> = (props) => {
|
|||
}
|
||||
);
|
||||
})
|
||||
.catch(() => {
|
||||
.catch((err) => {
|
||||
setToastAlert({
|
||||
type: "error",
|
||||
title: "Error!",
|
||||
message: "Page could not be created. Please try again.",
|
||||
message: err.detail ?? "Page could not be created. Please try again.",
|
||||
});
|
||||
postHogEventTracker(
|
||||
"PAGE_CREATED",
|
||||
|
|
@ -104,11 +104,11 @@ export const CreateUpdatePageModal: FC<Props> = (props) => {
|
|||
}
|
||||
);
|
||||
})
|
||||
.catch(() => {
|
||||
.catch((err) => {
|
||||
setToastAlert({
|
||||
type: "error",
|
||||
title: "Error!",
|
||||
message: "Page could not be updated. Please try again.",
|
||||
message: err.detail ?? "Page could not be updated. Please try again.",
|
||||
});
|
||||
postHogEventTracker(
|
||||
"PAGE_UPDATED",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue