Split API into multiple files & setup public user permissions
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -43,6 +43,7 @@ class Home extends Controller {
|
||||
app_name: this.configs.get('app.name'),
|
||||
system_base: this.configs.get('app.url'),
|
||||
authenticated_user: !!req.user,
|
||||
public_user: !!req?.user?.is_public_user(),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,6 +33,7 @@ class SessionController extends Controller {
|
||||
id: user.id,
|
||||
username: user.uid,
|
||||
preferences: user.preferences || {},
|
||||
is_public_user: user.is_public_user(),
|
||||
},
|
||||
app: {
|
||||
name: this.configs.get('app.name'),
|
||||
|
||||
Reference in New Issue
Block a user