Skip to content

Implement a permission system #18

Open

Description

@Insprill

A permission system should be implemented to allow for more open lobbies while preventing people from trolling.

Permission should be broken down into groups, with two by default.
The 'Admin' group has all permissions, and the 'Default' group has limited permissions.

The admin group should not be able to be modified or deleted. The default group can be modified but cannot be deleted.
Other groups can be added, modified, and deleted at will.

The UI for selecting what group a player is in would look something like the following.

Players Group
Insprill [x] Admin [ ] Default [ ] MyCustomGroup
ChaoticWagon [ ] Admin [x] Default [ ] MyCustomGroup
Wiz [x] Admin [ ] Default [x] MyCustomGroup

The UI for creating and deleting groups would look something like the following.

Groups
Admin
[x] Manual Switches
[x] Remote Switches
[x] Delete Cars
[x] Rerail Cars
Default
[x] Manual Switches
[ ] Remote Switches
[ ] Delete Cars
[x] Rerail Cars
+ Create Group

Permissions would exist for the following.

  • Manual Switches: The ability to throw switches by clicking on them. The server would validate this with a simple distance-based sanity check.
  • Remote Switches: The ability to throw switches with the comms remote.
  • Delete Cars
  • Rerail Cars
  • Take Jobs
  • Use Turntables
  • Service Cars
  • Fast Travel
  • Purchase Licenses

Activity

  1. converted this from a draft issue on Aug 4, 2023
  2. fauxnik commented on May 3, 2024

    @fauxnik

    I might suggesting including an API that other mods can use to add additional permissions, ex: Rolling Stock Ownership adding a Purchase Cars permission.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions