Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xiao F Give manager default permission to suggest instead of edit #587

Conversation

tsunami776
Copy link
Contributor

@tsunami776 tsunami776 commented Oct 26, 2023

Description

CleanShot 2023-10-26 at 00 06 27
Manager has both edit and suggest permissions in the database, but edit permission overrides suggest so that 'suggest' button won't appear for manager.

Related PRS (if any):

PR#1458

Main changes explained:

  • Update file src/utilities/createInitialPermissions.js to initialize manager permission with suggest

How to test:

  1. check into current branch
  2. do npm install, npm run buildand npm start to run this PR locally
  3. log in as manager user
  4. go to dashboard -> Tasks -> click on task name -> should see 'suggest' button

Difficulties: Although I turned off edit permission for manager with owner account and ran the BE code in the PR, the edit permission on manager will be restored after some time. Any help will be appreciated.

Screenshots or videos of changes:

XiaoF.manager.permission.mp4

Note:

  1. For BE, this TypeError: Cannot read property 'permissions' of null error exists on dev branch:
    CleanShot 2023-10-25 at 22 53 07

@tsunami776 tsunami776 added Do Not Review Do not review or look at code without full context and removed Do Not Review Do not review or look at code without full context labels Oct 26, 2023
@palakgosalia
Copy link

Hey, I have left a detailed comment in PR 1458. Thank you

@tsunami776 tsunami776 closed this Jan 6, 2024
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