Skip to content

cl-1.4.x -> 1.4.x - #6057

Merged
abnegate merged 16 commits into
1.4.xfrom
cl-1.4.x
Aug 29, 2023
Merged

abnegate merged 16 commits into
1.4.xfrom
cl-1.4.x

Conversation

@abnegate

Copy link
Copy Markdown
Member

What does this PR do?

(Provide a description of what this PR does and why it's needed.)

Test Plan

(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Screenshots may also be helpful.)

Related PRs and Issues

  • (Related PR or issue)

Checklist

  • Have you read the Contributing Guidelines on issues?
  • If the PR includes a change to an API's metadata (desc, label, params, etc.), does it also include updated API specs and example docs?

@abnegate
abnegate marked this pull request as ready for review August 29, 2023 17:52

$database = Authorization::skip(fn() => $dbForProject->getDocument('databases', $databaseId));

if ($database->isEmpty() || (!$database->getAttribute('enabled') && $mode !== APP_MODE_ADMIN)) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did we remove these checks?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These routes are only accessible to API key/admin already so the checks are redundant

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.

2 participants