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

Add sergeant role (second LEO supervisor) #1949

Closed
wants to merge 2 commits into from
Closed

Conversation

glxgxr
Copy link

@glxgxr glxgxr commented Jun 18, 2024

Feature

  • Related issues linked using closes: #number
  • There is only 1 db migration with no breaking changes.

Translations

  • .json files are formatted: pnpm format
  • Translations are correct
  • New translation? It's been added to i18n.config.mjs

closes #1922

@casperiv0
Copy link
Member

Nice PR, though, what's the point if they can use custom roles instead 👀?

@Legacy-TacticalGamingInteractive
Copy link

Legacy-TacticalGamingInteractive commented Jul 2, 2024

Nice PR, though, what's the point if they can use custom roles instead 👀?

This appears to be related to my issue here and permissions:
#1922

The need for another Supervisor option is important for lower level Supervisor so they don't have as much power. (In case someone gets terminated from a Department and then tries to sabotage officers)

@jxckUK
Copy link
Contributor

jxckUK commented Jul 3, 2024

So ultimately another role isn't whats needed (as this can be achieved with custom roles), but additional permission keys so you can split out the "Manage Units" key into less privileged tasks such as the ones you listed?

Manage another Officer's Rank
Manage another Officer's Callsign
Ability to view Department Time/Duty Logs

@Legacy-TacticalGamingInteractive

Yes exactly

Basically so we can fine tune a few more permissions as needed for security reasons

@Legacy-TacticalGamingInteractive

Does this one just need to be merged with next update then its good to go basically?

@jxckUK
Copy link
Contributor

jxckUK commented Jul 28, 2024

I don't think this PR is effective in resolving the issue raised, we need additional permission keys, not more static roles that people can replicate already with custom roles.

Perhaps Casper can comment on this and potentially look to add more segregation to the manage unit permissions.

@Legacy-TacticalGamingInteractive

I also realized just now that Manage Officer Rank (to change an officer's rank) is not an option under Custom Roles as a Permission to select.

@Legacy-TacticalGamingInteractive
Copy link

Legacy-TacticalGamingInteractive commented Sep 14, 2024

Nice PR, though, what's the point if they can use custom roles instead 👀?

@casperiv0 I think we can close this one now because this method is easier now: #1956

@casperiv0
Copy link
Member

Superseded by #1956

@casperiv0 casperiv0 closed this Sep 16, 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.

Add Permission : Change Officer Rank & Callsign and possibly View Time Logs Only
4 participants