@@ -31,7 +31,7 @@ const DocumentRouter = {
3131 if ( to . params . folderId == 'shared' ) {
3232 return RoleConst . ADMIN
3333 } else {
34- return RoleConst . WORKSPACE_MANAGE . getWorkspaceRole
34+ return RoleConst . WORKSPACE_MANAGE . getWorkspaceRole ( )
3535 }
3636 } ,
3737 ( ) => {
@@ -49,7 +49,7 @@ const DocumentRouter = {
4949 ( ) => {
5050 const to : any = get_next_route ( )
5151 if ( to . params . folderId == 'shared' ) { return RoleConst . ADMIN } else {
52- return PermissionConst . KNOWLEDGE_DOCUMENT_READ . getWorkspacePermissionWorkspaceManageRole
52+ return PermissionConst . KNOWLEDGE_DOCUMENT_READ . getWorkspacePermissionWorkspaceManageRole ( )
5353 }
5454 }
5555 ] ,
@@ -75,7 +75,7 @@ const DocumentRouter = {
7575 } ,
7676 ( ) => {
7777 const to : any = get_next_route ( )
78- if ( to . params . folderId == 'shared' ) { return RoleConst . ADMIN } else { return RoleConst . WORKSPACE_MANAGE . getWorkspaceRole }
78+ if ( to . params . folderId == 'shared' ) { return RoleConst . ADMIN } else { return RoleConst . WORKSPACE_MANAGE . getWorkspaceRole ( ) }
7979 } ,
8080 ( ) => {
8181 const to : any = get_next_route ( )
@@ -87,7 +87,7 @@ const DocumentRouter = {
8787 } ,
8888 ( ) => {
8989 const to : any = get_next_route ( )
90- if ( to . params . folderId == 'shared' ) { return RoleConst . ADMIN } else { return PermissionConst . KNOWLEDGE_PROBLEM_READ . getWorkspacePermissionWorkspaceManageRole }
90+ if ( to . params . folderId == 'shared' ) { return RoleConst . ADMIN } else { return PermissionConst . KNOWLEDGE_PROBLEM_READ . getWorkspacePermissionWorkspaceManageRole ( ) }
9191 } ,
9292 ] ,
9393 } ,
@@ -111,7 +111,7 @@ const DocumentRouter = {
111111 } ,
112112 ( ) => {
113113 const to : any = get_next_route ( )
114- if ( to . params . folderId == 'shared' ) { return RoleConst . ADMIN } else { return RoleConst . WORKSPACE_MANAGE . getWorkspaceRole }
114+ if ( to . params . folderId == 'shared' ) { return RoleConst . ADMIN } else { return RoleConst . WORKSPACE_MANAGE . getWorkspaceRole ( ) }
115115 } ,
116116 ( ) => {
117117 const to : any = get_next_route ( )
@@ -123,7 +123,7 @@ const DocumentRouter = {
123123 } ,
124124 ( ) => {
125125 const to : any = get_next_route ( )
126- if ( to . params . folderId == 'shared' ) { return RoleConst . ADMIN } else { return PermissionConst . KNOWLEDGE_HIT_TEST_READ . getWorkspacePermissionWorkspaceManageRole }
126+ if ( to . params . folderId == 'shared' ) { return RoleConst . ADMIN } else { return PermissionConst . KNOWLEDGE_HIT_TEST_READ . getWorkspacePermissionWorkspaceManageRole ( ) }
127127 } ,
128128 ] ,
129129 } ,
@@ -195,7 +195,7 @@ const DocumentRouter = {
195195 } ,
196196 ( ) => {
197197 const to : any = get_next_route ( )
198- if ( to . params . folderId == 'shared' ) { return RoleConst . ADMIN } else { return RoleConst . WORKSPACE_MANAGE . getWorkspaceRole }
198+ if ( to . params . folderId == 'shared' ) { return RoleConst . ADMIN } else { return RoleConst . WORKSPACE_MANAGE . getWorkspaceRole ( ) }
199199 } ,
200200 ( ) => {
201201 const to : any = get_next_route ( )
@@ -207,7 +207,7 @@ const DocumentRouter = {
207207 } ,
208208 ( ) => {
209209 const to : any = get_next_route ( )
210- if ( to . params . folderId == 'shared' ) { return RoleConst . ADMIN } else { return PermissionConst . KNOWLEDGE_EDIT . getWorkspacePermissionWorkspaceManageRole }
210+ if ( to . params . folderId == 'shared' ) { return RoleConst . ADMIN } else { return PermissionConst . KNOWLEDGE_EDIT . getWorkspacePermissionWorkspaceManageRole ( ) }
211211 } ,
212212 ] ,
213213 } ,
0 commit comments