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

Update Rule Elements UI setting to manage access by user role #14940

Merged
merged 1 commit into from
Jun 16, 2024

Conversation

jfn4th
Copy link
Contributor

@jfn4th jfn4th commented Jun 2, 2024

Closes #14203

Allows setting a minimum role for Rule Elements UI access. Choices are Game Master/Assistant GM, Trusted Player, and Player.

Screenshot 2024-06-02 at 3 05 18 PM

@jfn4th jfn4th force-pushed the expand-re-permissions branch 2 times, most recently from eabfe87 to 4b6bac7 Compare June 7, 2024 23:04
@CarlosFdez
Copy link
Collaborator

CarlosFdez commented Jun 11, 2024

The idea mostly looks fine to me, though I don't know if we should assume assistant gm as well. It might also be wise to make the value a number analogous to the values of CONST.USER_ROLES (and see if foundry has localization for those roles) and see if that makes the check any easier.

@jfn4th
Copy link
Contributor Author

jfn4th commented Jun 11, 2024

I'd grouped the GM and Assistant GM together as it's more consistent with the current behavior, though I see what you mean. I suppose I could split it up and still maintain the state of affairs for existing worlds by setting Assistant GM as the minimum in the migration.

I'll take another look sometime this week.

@jfn4th
Copy link
Contributor Author

jfn4th commented Jun 11, 2024

Thanks for the suggestions @CarlosFdez. All in.

@CarlosFdez CarlosFdez merged commit a8d8b4c into foundryvtt:master Jun 16, 2024
1 check passed
@jfn4th jfn4th deleted the expand-re-permissions branch June 16, 2024 05:00
scope: "world",
config: true,
default: false,
type: Boolean,
default: 4,
Copy link

@ThiefMaster ThiefMaster Jun 16, 2024

Choose a reason for hiding this comment

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

Wouldn't it make more sense to default to 3 here considering that you migrate "no players access" to "Assistant DM access"? This would also go in line with the Foundry default of Assistant DMs having the same level of permissions as full DMs?

Copy link
Collaborator

Choose a reason for hiding this comment

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

GM*, but it would.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Option to give Rules access only to trusted players
4 participants