Releases: mselerin/ngx-security
Releases · mselerin/ngx-security
[email protected]
[email protected]
[email protected]
[email protected]
3.0.0 (2021-11-08)
🐛 Bug Fixes
secuHasPermissions
is still called twice when used with a resource (629c92b)- force changes detection when the authorization change (5c62ace)
- when
secuHasPermissions
is used with a resource, the checker is called twice (61077a4)
🔧 Code Refactoring
NgxSecurityState
with only checker function (d5e1332)
🚀 Features
- removed
roles
,groups
andpermissions
fromNgxSecurityGuardOptions
and replace them withhasAllXxx
,hasAnyXxx
andhasNotXxx
(ef32f07)
🔥 BREAKING CHANGES
- type changes inside
NgxSecurityGuardOptions
- removed
authenticated
,roles
,groups
andpermissions
array fromNgxSecurityState
[email protected]
🐛 Bug Fixes
- when
secuHasPermissions
is used with a resource, the checker is called twice (775bbe6)
[email protected]
🐛 Bug Fixes
- use
take(1)
insidehandleStateChange
instead ofunsubscribe()
(704679f)
[email protected]
[email protected]
[email protected]
[email protected]
Features ⚡️
NgxSecurityState.permissionsChecker
andNgxSecurityService.hasPermission
accept a 2nd parameter of typeany
(eb878fe)