-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable UI starting dataset creating jobs for unprivileged users (#7753)
* disable ui starting dataset creating jobs for non-admin/ datasetmanager users * hide materialize merger mode button instead of disabling it * check for is team manager as well (and not only admin or dataset manager roles) * re-allow merge with fallback layer for team managers * add changelog entry * add improved image to permission enforcer view / forbidden view * add manager/admin permissions required view to privileged views
- Loading branch information
1 parent
7fa1740
commit a23ec31
Showing
13 changed files
with
674 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import React from "react"; | ||
import { Button, Result, Col, Row } from "antd"; | ||
import { Link } from "react-router-dom"; | ||
|
||
export function PageNotAvailableToNormalUser() { | ||
return ( | ||
<Row justify="center" align="middle" className="full-viewport-height"> | ||
<Col> | ||
<Result | ||
status="error" | ||
title="Forbidden" | ||
icon={<i className="drawing drawing-forbidden-view" />} | ||
subTitle={ | ||
<> | ||
Apologies, but you don't have permission to view this page. | ||
<br /> | ||
Please reach out to a team manager, dataset manager or administrator to assist you | ||
with the actions you'd like to take. | ||
</> | ||
} | ||
extra={ | ||
<Link to="/"> | ||
<Button type="primary">Return to Dashboard</Button> | ||
</Link> | ||
} | ||
/> | ||
</Col> | ||
</Row> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.