Skip to content

Commit

Permalink
fix: Fix workspace redirect 404 rule
Browse files Browse the repository at this point in the history
  • Loading branch information
leoliu committed Feb 12, 2020
1 parent 071915a commit c0ebdfd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Modals/ProjectSelect/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export default class ProjectSelectModal extends React.Component {
}

if (
globals.app.hasPermission({ module: 'workspaces', action: 'edit' }) ||
globals.app.hasPermission({ module: 'workspaces', action: 'manage' }) ||
globals.app.hasPermission({
module: 'workspaces',
action: 'view',
Expand Down
1 change: 1 addition & 0 deletions src/pages/workspaces/containers/layout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ class WorkspaceLayout extends Component {
}

if (
!globals.app.hasPermission({ module: 'workspaces', action: 'manage' }) &&
!globals.app.hasPermission({
module: 'workspaces',
action: 'view',
Expand Down

0 comments on commit c0ebdfd

Please sign in to comment.