Fix public links and menu dark mode
This commit is contained in:
@@ -319,7 +319,7 @@ export const checkAccess = async (
|
||||
repository: Repository<DriveFile>,
|
||||
context: CompanyExecutionContext & { public_token?: string; twake_tab_token?: string },
|
||||
): Promise<boolean> => {
|
||||
if (context.user.server_request) {
|
||||
if (context.user?.server_request) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user