File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -111,12 +111,14 @@ export default class PermsCommand extends SolidCommand {
111
111
for ( let permission of parsedPermissions ) {
112
112
try {
113
113
await acl_perms . changePermissions ( url , [ permission ] , options )
114
+ return ;
114
115
} catch ( e ) {
115
116
if ( options . verbose ) writeErrorString ( `Could not set permissions for ${ permission . id } using WAC` , e , options )
116
117
}
117
118
try {
118
119
if ( options . group || options . default ) throw new Error ( "Cannot set WAC-specific options such as group and default for non-WAC environments " )
119
120
await setPermission ( url , [ permission ] , options )
121
+ return ;
120
122
} catch ( e ) {
121
123
if ( options . verbose ) writeErrorString ( `Could not set permissions for ${ permission . id } using ACP` , e , options )
122
124
}
You can’t perform that action at this time.
0 commit comments