Skip to content

Commit

Permalink
fix: admin user public folder
Browse files Browse the repository at this point in the history
  • Loading branch information
KernelDeimos committed Aug 18, 2024
1 parent 2386d87 commit 3819584
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/backend/src/services/auth/ACLService.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ class ACLService extends BaseService {

const username = await fsNode.getUserPart();
const user = await svc_getUser.get_user({ username });
if ( ! user.email_confirmed ) return;
if ( ! (user.email_confirmed || user.username === 'admin') ) {
return;
}

is_public = true;
})();
Expand Down

0 comments on commit 3819584

Please sign in to comment.