Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove redundant internal event in the User Permissions module (#573)
<!-- Thank you for submitting a Pull Request. If you're new to contributing to BCApps please read our pull request guideline below * https://github.com/microsoft/BCApps/Contributing.md --> #### Problem: `NavUserAccountHelper.IsPermissionSetAssigned` doesn't work with buffered inserts, so when user records are inserted without a `Commit` (e. g. in tests), it throws the "User does not exist" exception. So far this problem has been solved with an internal event that skips the call alltogether in tests. #### Solution: Call `User.Get` before calling `NavUserAccountHelper.IsPermissionSetAssigned` to make sure buffered inserts are flushed. #### Work Item(s) <!-- Add the issue number here after the #. The issue needs to be open and approved. Submitting PRs with no linked issues or unapproved issues is highly discouraged. --> Fixes [AB#497548](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/497548)
- Loading branch information