File tree Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -97,21 +97,17 @@ export class FilesRouter {
97
97
const user = req . auth . user ;
98
98
const isLinked = user && Parse . AnonymousUtils . isLinked ( user ) ;
99
99
if ( ! config . fileUpload . enableForAnonymousUser && isLinked ) {
100
- next (
101
- new Parse . Error (
102
- Parse . Error . FILE_SAVE_ERROR ,
103
- 'File upload by anonymous user is disabled.'
104
- )
105
- ) ;
100
+ next ( new Parse . Error (
101
+ Parse . Error . FILE_SAVE_ERROR ,
102
+ 'File upload by anonymous user is disabled.'
103
+ ) ) ;
106
104
return ;
107
105
}
108
106
if ( ! config . fileUpload . enableForAuthenticatedUser && ! isLinked && user ) {
109
- next (
110
- new Parse . Error (
111
- Parse . Error . FILE_SAVE_ERROR ,
112
- 'File upload by authenticated user is disabled.'
113
- )
114
- ) ;
107
+ next ( new Parse . Error (
108
+ Parse . Error . FILE_SAVE_ERROR ,
109
+ 'File upload by authenticated user is disabled.'
110
+ ) ) ;
115
111
return ;
116
112
}
117
113
if ( ! config . fileUpload . enableForPublic && ! user ) {
You can’t perform that action at this time.
0 commit comments