Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wider Comparison for the isAdmin() Check #1363

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

vbhayden
Copy link
Contributor

@vbhayden vbhayden commented Jun 7, 2024

Updating the two isAdmin() functions to compare all public keys for the current user against all admin public keys provided by the ping.

The original check just looked at the first key in both, and the updated ping response will also include known users who have logged in as admins since the server process started.

This is a sister PR for cassproject/CASS#320

Copy link

sonarqubecloud bot commented Jun 7, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
100.0% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@vbhayden
Copy link
Contributor Author

vbhayden commented Jun 7, 2024

The isAdmin() check in cassUtil.js seems to be unused, as that function didn't seem to do anything when changed. I can remove that block there to keep SonarCoud from complaining about duplication if requested.

@Lomilar Lomilar merged commit fe971ce into cassproject:master Jun 13, 2024
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants