You are browsing as a guest. Sign up (or log in) to start making projects!

1h 19m 24s logged

Today I added permission templates to Realm, my game server panel. Previously, when you wanted to give someone limited access to your server, you had to manually check off permissions one by one from a list of 60+ options every single time — annoying if you’re managing several servers with a team.

Now you can save a named template (like “Moderator” or “Console Operator”) with a specific set of permissions once, and apply it with a single click whenever you invite or edit a subuser. It shows up right alongside the built-in presets in the invite/edit UI.

What I built:

  • A new subuser_permission_templates table, scoped per-account so each user manages their own templates
  • A small Laravel API (create/list/update/delete) that validates permissions against the real whitelist so templates can never smuggle in a permission you’re not allowed to grant
  • A new “Permission Templates” page under Account settings — pick a name, check the permissions you want, save
  • Wired the templates into the existing subuser invite/edit forms so they appear as one-click buttons next to “View only”, “Operator”, “Manager”, etc.

Tested it end-to-end in the browser: created a “Console Operator” template with console+start permissions, confirmed it landed in the database correctly, then applied it while inviting a user and watched it auto-select the right 2 permissions instantly.

Small feature, but it’s the kind of thing that saves real time once you’re managing more than one or two servers with a team.

0
1

Comments 0

No comments yet. Be the first!