Skip to content
This repository was archived by the owner on Oct 26, 2026. It is now read-only.

Remove unnecessary Dao().TotalAdmins() call - #2726

Merged
ganigeorgiev merged 1 commit into
pocketbase:masterfrom
svekko:RequireAdminAuthOnlyIfAny_edit
Jun 16, 2023
Merged

ganigeorgiev merged 1 commit into
pocketbase:masterfrom
svekko:RequireAdminAuthOnlyIfAny_edit

Conversation

@svekko

@svekko svekko commented Jun 16, 2023 •

Copy link
Copy Markdown
Contributor

There is no reason to ask total admin count from DB if it's already known that user is indeed admin.

@ganigeorgiev
ganigeorgiev merged commit caf343e into pocketbase:master Jun 16, 2023
ahmed-khaire pushed a commit to ahmed-khaire/postgresbase that referenced this pull request Aug 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants