Skip to content

Gate tilemap editor behind admin permission check#1513

Closed
JakubIwicki wants to merge 1 commit into
RE-SS3D:developfrom
JakubIwicki:fix/1280-admin-functions
Closed

Gate tilemap editor behind admin permission check#1513
JakubIwicki wants to merge 1 commit into
RE-SS3D:developfrom
JakubIwicki:fix/1280-admin-functions

Conversation

@JakubIwicki

Copy link
Copy Markdown

Closes #1280

The tilemap editor was accessible to all players regardless of role. This gates it behind the admin permission check so only administrators can open it.

Changes

  • Assets/Scripts/SS3D/Permissions/PermissionSettings.cs — added AdminFunctionsForAll bool setting that allows hosts to opt-in to letting all players use admin functions
  • Assets/Scripts/SS3D/Systems/Tile/TileMapCreator/TileMapMenuSubSystem.cs — added CanAccessTilemapEditor() permission check preventing non-admin players from opening the tilemap editor

Verification

  • The tilemap editor toggle is blocked for users below Administrator role when AdminFunctionsForAll is false
  • When AdminFunctionsForAll is true, all users can access the tilemap editor
  • Admins can always access the tilemap editor regardless of the setting

Adds AdminFunctionsForAll setting to PermissionSettings and
restricts the tilemap editor toggle to administrators only
unless the admin-functions-for-all override is enabled.

Closes RE-SS3D#1280
@Alainx277

Copy link
Copy Markdown
Collaborator

PRs by AI agents are not allowed

@Alainx277 Alainx277 closed this Jun 6, 2026
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.

In-game Admin Functions

2 participants