Skip to content

Feature permission/restrictions #6121

Olivia Madrid requested to merge feat/feat-restrict-f6121 into master

Ticket(s) / Related Merge Requests

#6121 (closed)

Summary of Changes

If the front-6121-rbac-permissions feature flag is ON, then certain features will be restricted based on a whitelist of features that will be provided in the configs.permissions array.

If a user has permission to do everything, we expect the array to look like this: ['CAN_CREATE_POST','CAN_COMMENT', 'CAN_UPLOAD_VIDEO','CAN_CREATE_GROUP']

If the feature flag is OFF, no restrictions are applied to the features (other than any restrictions we already have on minds.com)

These are the specific changes made for each restricted feature:

image

ADDED: Can Interact

  • make thumbs grey when no permission in activity & comment
  • clicking a thumb on an activity or comment shows toast
  • if you CAN_CREATE_POST, but !CAN_INTERACT, remind dropdown only shows 'quote' & 'group share'
  • if you CAN_INTERACT, but !CAN_CREATE_POST, remind dropdown only shows 'remind'
  • if you !CAN_INTERACT and also !CAN_CREATE_POST, remind dropdown is grey and only shows toast when clicked

Testing Considerations

  • creating posts
  • commenting
  • uploading video/livestreaming
  • creating groups

Deployment Considerations

Growthbook flag: https://growthbook.minds.com/features/front-6121-rbac-permissions

Regression Scope

Visibility and behavior of the features listed in the whitelist array

Platform Affected (web, mobile, etc)

Web

Developer Testing Completed

The features are hidden or disabled when the user doesn't have permission.

Screenshots / Screen Recording

image

image

image

Can't upload video

__videoPermissions

Can't comment

__commentPermissions

Can't interact or create post

__featRestrict__noInteract

Does this impact

  • Localization
  • Dark/light mode
  • Guest mode

Definition of Done Checklist

  • The Acceptance Criteria has been met
  • Code is tested: Testing includes unit/spec, E2E/automated and manual testing
  • Merge requests description has been filled out
Edited by Olivia Madrid

Merge request reports

Loading