Skip to content

feat(resources): block suspended and banned users from submitting resources - #418

Merged
trtajim merged 5 commits into
mainfrom
feat/block-banned-user-resource-uploads
Oct 13, 2026
Merged

trtajim merged 5 commits into
mainfrom
feat/block-banned-user-resource-uploads

Conversation

@trtajim

@trtajim trtajim commented Oct 13, 2026

Copy link
Copy Markdown
Member

Summary

  • Enforces an active suspension check in ResourceController::ensureCanSubmit via $user->isBanned().
  • Suspended/banned users attempting to create, update, or delete resources receive a Bengali validation error showing the remaining suspension duration.
  • Added feature test in PublicResourceUploadTest verifying that suspended users cannot submit resources into the moderation queue.

@coderabbitai

coderabbitai Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 5 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository: hscstack/platform/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 39301423-edaf-4005-a8a3-d91638c845d5
📥 Commits

Reviewing files that changed from the base of the PR and between bce6ef8 and b3b59a5.

📒 Files selected for processing (14)
  • app/Http/Controllers/AboutUsController.php
  • app/Http/Controllers/Admin/ChatSettingsController.php
  • app/Http/Controllers/Admin/UserController.php
  • app/Http/Controllers/ChatController.php
  • app/Http/Controllers/ResourceController.php
  • database/migrations/2026_10_13_150437_remove_manager_role.php
  • database/seeders/RolePermissionSeeder.php
  • resources/js/components/StatusBadge.vue
  • resources/js/components/UserCard.vue
  • resources/js/pages/admin/users/CreateOrEdit.vue
  • resources/js/pages/platform/AboutUs.vue
  • tests/Feature/AdminUserListFilterTest.php
  • tests/Feature/ChatAutoBanTest.php
  • tests/Feature/PublicResourceUploadTest.php
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@trtajim
trtajim merged commit d918287 into main Oct 13, 2026
6 checks passed
@trtajim
trtajim deleted the feat/block-banned-user-resource-uploads branch October 13, 2026 15:06
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