Skip to content

Feature/roles permissions - #22

Merged
shareefmwafy merged 2 commits into
mainfrom
feature/roles-permissions
Oct 19, 2025
Merged

Feature/roles permissions#22
shareefmwafy merged 2 commits into
mainfrom
feature/roles-permissions

Conversation

@shareefmwafy

Copy link
Copy Markdown
Owner

No description provided.

@shareefmwafy
shareefmwafy merged commit 236ae06 into main Oct 19, 2025
3 checks passed

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This PR is being reviewed by Cursor Bugbot

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

return Ok(result);
}
return BadRequest();
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Bug: Incorrect Error Handling for Lock/Unlock

The LockUnLock endpoint's logic for handling the service's bool? return value is off. It returns BadRequest() when an account is successfully unlocked (false), and also when a user isn't found (null), where NotFound() would be more appropriate.

Fix in Cursor Fix in Web

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.

1 participant