Closed smurthys closed 5 years ago
Upon reviewing the code carefully, I have concluded this is not an issue: the purpose of the existing code is to grant login to a user who may have lost that privilege through an out-of-band means. If createRole
is called to create a user (for an existing server role), it is indeed necessary to grant login.
Should clarify comment in code to avoid future confusion.
Re-opening the issue because a comment was changed in source file and the change needs to be verified.
If function
createRole
is called for a role that already exists, the logic to grant login privilege to the role incorrectly skips granting that privilege.The issue is due to an incorrect logical expression which reads as follows:
The code should be as follows: