Skip to content

feature/upload-organization-pic#69

Merged
mdawoud27 merged 6 commits into
mainfrom
feature/66/upload_organization_pic
Apr 5, 2025
Merged

feature/upload-organization-pic#69
mdawoud27 merged 6 commits into
mainfrom
feature/66/upload_organization_pic

Conversation

@mdawoud27
Copy link
Copy Markdown
Contributor

PR Checklist (required)

Please check if your PR fulfills the following requirements:

  • The commit message follows our guidelines.

  • Tests for the changes have been added (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation changes
  • Other... Please describe:

Related Issue

Closes #66

@mdawoud27 mdawoud27 added enhancement New feature or request feature For new feature labels Apr 5, 2025
@mdawoud27 mdawoud27 requested a review from Copilot April 5, 2025 09:20
@mdawoud27 mdawoud27 self-assigned this Apr 5, 2025
@mdawoud27 mdawoud27 linked an issue Apr 5, 2025 that may be closed by this pull request
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 6 out of 7 changed files in this pull request and generated 1 comment.

Files not reviewed (1)
  • package.json: Language not supported
Comments suppressed due to low confidence (1)

src/controllers/organization.controller.js:868

  • [nitpick] For consistency, consider returning an error object with a 'success' flag (like in other parts of the controller) when no file is uploaded.
if (!req.file) {

verifyAccessToken,
addOwners,
);
router.post(
Copy link

Copilot AI Apr 5, 2025

Choose a reason for hiding this comment

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

The new upload endpoint documentation states that admin or owner permissions are required, but the route only includes verifyAccessToken. Please add an authorization middleware (e.g., verifyAdminPermission) to enforce this check.

Copilot uses AI. Check for mistakes.
@mdawoud27 mdawoud27 merged commit 80b5609 into main Apr 5, 2025
11 checks passed
@mdawoud27 mdawoud27 deleted the feature/66/upload_organization_pic branch April 5, 2025 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request feature For new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Upload the organization pic

2 participants