Skip to content
This repository was archived by the owner on Sep 13, 2023. It is now read-only.

Commit 1bf4d9c

Browse files
luciaquirkeLucia Quirke
andauthored
Give authenticated users land rights by default (#144)
Give authenticated users landing authorisation by default. For security Landkid must now be deployed on the internal Atlassian network (behind the VPN). Co-authored-by: Lucia Quirke <[email protected]>
1 parent 3d47bc2 commit 1bf4d9c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/db/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ export class Permission extends Model<Permission> implements IPermission {
241241
readonly aaid: string;
242242

243243
@AllowNull(false)
244-
@Default('read')
244+
@Default('land')
245245
@Column(Sequelize.ENUM({ values: ['read', 'land', 'admin'] }))
246246
readonly mode: IPermissionMode;
247247

src/lib/PermissionService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class PermissionService {
1212
});
1313

1414
if (!permission) {
15-
const defaultMode: IPermissionMode = config.landkidAdmins.includes(aaid) ? 'admin' : 'read';
15+
const defaultMode: IPermissionMode = config.landkidAdmins.includes(aaid) ? 'admin' : 'land';
1616
Logger.info('User does not exist, creating one', {
1717
namespace: 'lib:permissions:getPermissionForUser',
1818
defaultMode,

0 commit comments

Comments
 (0)