Changes the Role.Permissions type from uint64 to PermissionBit, this makes it consistent with the rest of the library and also allows it to use the Contains method. This PR also removes an IDE warning caused by ignoring a return value in role.DeepCopy.
Type of change
Please delete options that are not relevant.
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
Checklist:
[ ] I ran go generate
[x] I have performed a self-review of my own code (remember to run go fmt ./...)
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules
[ ] Added benchmarks if this is a performant required component (potential bottlenecks)
Description
Changes the Role.Permissions type from uint64 to PermissionBit, this makes it consistent with the rest of the library and also allows it to use the Contains method. This PR also removes an IDE warning caused by ignoring a return value in role.DeepCopy.
Type of change
Please delete options that are not relevant.
Checklist:
go generate
go fmt ./...
)