@edular/permissions 3.0.3 → 3.2.1

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/README.md CHANGED
@@ -24,7 +24,7 @@ import { Permissions } from '@edular/permissions'
24
24
 
25
25
  // ...
26
26
 
27
- const doesProfileHavePermissions = profilePermissions.includes(Permissions.Admissions.Students.Read)
27
+ const doesProfileHavePermissions = profilePermissions.includes(Permissions.Admissions.Students.View)
28
28
 
29
29
  if (doesProfileHavePermissions){
30
30
  // do something
@@ -44,7 +44,10 @@ The file is generated based on the permissions list from the main Edular databas
44
44
 
45
45
  ## How to publish new version
46
46
 
47
- 1. Update the `version` in `package.json` manually or use `npm` for that:
47
+ 1. Start the edular-core and run `yarn generate-permissions` to generate new `permissions.ts`.
48
+ 2. Commit the change and run `npm version major|minor|patch -m "bump %s"` to bump new version.
49
+ 3. Publish to npm registry by running `npm publish`.
50
+ 4. Update the `version` in `package.json` manually or use `npm` for that:
48
51
 
49
52
  ```
50
53
  npm version <major|minor|patch>