@appxdigital/appx-core-cli 1.0.13 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cli.js
CHANGED
|
@@ -27,7 +27,7 @@ import packageJson from './package.json' with {type: 'json'};
|
|
|
27
27
|
const __filename = fileURLToPath(import.meta.url);
|
|
28
28
|
const __dirname = path.dirname(__filename);
|
|
29
29
|
|
|
30
|
-
const CORE_VERSION = '0.1.
|
|
30
|
+
const CORE_VERSION = '0.1.116';
|
|
31
31
|
|
|
32
32
|
const phaseDurations = {
|
|
33
33
|
installDependencies: 30,
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@ model User {
|
|
|
17
17
|
email String @unique
|
|
18
18
|
name String?
|
|
19
19
|
password String? /// @Role(none)
|
|
20
|
-
role Role @default(
|
|
20
|
+
role Role @default(USER)
|
|
21
21
|
refreshTokens UserRefreshToken[]
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -43,5 +43,5 @@ model UserRefreshToken {
|
|
|
43
43
|
|
|
44
44
|
enum Role {
|
|
45
45
|
ADMIN
|
|
46
|
-
|
|
46
|
+
USER
|
|
47
47
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {PermissionPlaceholder, PermissionsConfigType
|
|
1
|
+
import {PermissionPlaceholder, PermissionsConfigType} from '@appxdigital/appx-core';
|
|
2
2
|
|
|
3
3
|
export const PermissionsConfig: PermissionsConfigType = {
|
|
4
4
|
User: {
|
|
@@ -9,9 +9,9 @@ export const PermissionsConfig: PermissionsConfigType = {
|
|
|
9
9
|
updateMany: 'ALL',
|
|
10
10
|
deleteMany: 'ALL',
|
|
11
11
|
},
|
|
12
|
-
|
|
12
|
+
USER: {
|
|
13
13
|
findFirst: {
|
|
14
|
-
conditions: {id: PermissionPlaceholder.USER_ID},
|
|
14
|
+
conditions: {id: PermissionPlaceholder.USER_ID}, // Can only see its own user
|
|
15
15
|
},
|
|
16
16
|
}
|
|
17
17
|
},
|