diff --git a/web/src/table/PolicyTable.js b/web/src/table/PolicyTable.js index 3492287a..b1d0beeb 100644 --- a/web/src/table/PolicyTable.js +++ b/web/src/table/PolicyTable.js @@ -105,7 +105,7 @@ class PolicyTable extends React.Component { AdapterBackend.getPolicies(this.props.enforcer.owner, this.props.enforcer.name) .then((res) => { if (res.status === "ok") { - Setting.showMessage("success", i18next.t("adapter:Sync policies successfully")); + // Setting.showMessage("success", i18next.t("adapter:Sync policies successfully")); const policyList = res.data; policyList.map((policy, index) => { @@ -175,7 +175,7 @@ class PolicyTable extends React.Component { render: (text, record, index) => { const editing = this.isEditing(index); return ( - editing ? + (editing && this.props.modelCfg) ?