File tree 3 files changed +7
-4
lines changed
3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ const implicit_user_app_permissions = [
88
88
] ;
89
89
90
90
const implicit_user_permissions = {
91
- 'driver' : { } ,
91
+ // 'driver': {},
92
92
} ;
93
93
94
94
class PermissionRewriter {
Original file line number Diff line number Diff line change @@ -91,7 +91,6 @@ class DriverService extends BaseService {
91
91
try {
92
92
return await this . _call ( ...a ) ;
93
93
} catch ( e ) {
94
- console . error ( e ) ;
95
94
return this . _driver_response_from_error ( e ) ;
96
95
}
97
96
}
Original file line number Diff line number Diff line change @@ -20,9 +20,13 @@ const { Sequence } = require("../../codex/Sequence");
20
20
const { get_user } = require ( "../../helpers" ) ;
21
21
const { Actor, UserActorType } = require ( "../../services/auth/Actor" ) ;
22
22
23
-
24
-
25
23
module . exports = new Sequence ( [
24
+ async function grant_if_system ( a ) {
25
+ const { actor } = a . values ( ) ;
26
+ if ( actor . type . user . username === 'system' ) {
27
+ return a . stop ( { } ) ;
28
+ }
29
+ } ,
26
30
async function rewrite_permission ( a ) {
27
31
let { permission } = a . values ( ) ;
28
32
permission = await a . icall ( '_rewrite_permission' , permission ) ;
You can’t perform that action at this time.
0 commit comments