mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-24 08:20:31 +08:00
fix: actions initialized to null and model/resources not updated with the owner (#887)
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
This commit is contained in:
parent
117dec4542
commit
2eec53a6d0
@ -143,6 +143,8 @@ class PermissionEditPage extends React.Component {
|
|||||||
|
|
||||||
this.getUsers(owner);
|
this.getUsers(owner);
|
||||||
this.getRoles(owner);
|
this.getRoles(owner);
|
||||||
|
this.getModels(owner);
|
||||||
|
this.getResources(owner);
|
||||||
})}>
|
})}>
|
||||||
{
|
{
|
||||||
this.state.organizations.map((organization, index) => <Option key={index} value={organization.name}>{organization.name}</Option>)
|
this.state.organizations.map((organization, index) => <Option key={index} value={organization.name}>{organization.name}</Option>)
|
||||||
|
@ -33,7 +33,7 @@ class PermissionListPage extends BaseListPage {
|
|||||||
roles: [],
|
roles: [],
|
||||||
resourceType: "Application",
|
resourceType: "Application",
|
||||||
resources: ["app-built-in"],
|
resources: ["app-built-in"],
|
||||||
action: "Read",
|
actions: ["Read"],
|
||||||
effect: "Allow",
|
effect: "Allow",
|
||||||
isEnabled: true,
|
isEnabled: true,
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user