Skip to content

Commit 339342a

Browse files
committed
fix permission check
1 parent ab260d4 commit 339342a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/containers/ProjectEditor/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class ProjectEditor extends Component {
9191
if (isProjectTypesLoading || (isEdit && isProjectLoading)) return <Loader />
9292

9393
const isAdmin = checkAdmin(this.props.auth.token)
94-
const isCopilotOrManager = this.checkIsCopilotOrManager(_.get(this.state.project, 'members', []), _.get(this.props.auth, 'user.handle', null))
94+
const isCopilotOrManager = this.checkIsCopilotOrManager(_.get(projectDetail, 'members', []), _.get(this.props.auth, 'user.handle', null))
9595
const canManage = isAdmin || isCopilotOrManager
9696

9797
const projectId = this.getProjectId(match)

0 commit comments

Comments
 (0)