mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 15:35:49 +01:00
Extract single permission editor
This commit is contained in:
@@ -33,7 +33,7 @@ import {
|
||||
import { translate } from "react-i18next";
|
||||
import { getUsersLink } from "../../modules/indexResource";
|
||||
import SetUserPassword from "../components/SetUserPassword";
|
||||
import SetUserPermissions from "../components/SetUserPermissions";
|
||||
import SetPermissions from "../../permissions/components/SetPermissions";
|
||||
|
||||
type Props = {
|
||||
name: string,
|
||||
@@ -110,7 +110,11 @@ class SingleUser extends React.Component<Props> {
|
||||
/>
|
||||
<Route
|
||||
path={`${url}/permissions`}
|
||||
component={() => <SetUserPermissions user={user} />}
|
||||
component={() => (
|
||||
<SetPermissions
|
||||
selectedPermissionsLink={user._links.permissions}
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
</div>
|
||||
<div className="column">
|
||||
|
||||
Reference in New Issue
Block a user