Skip to content

Instantly share code, notes, and snippets.

@zml2008
Created August 12, 2013 02:00
Show Gist options
  • Select an option

  • Save zml2008/6207799 to your computer and use it in GitHub Desktop.

Select an option

Save zml2008/6207799 to your computer and use it in GitHub Desktop.
Directory-based permissions concept

Overview

Instead of sticking all permissions in one file (per world), each user is a folder containing files where each line is a permission specification, and files can be symlinks (to function as groups).

This is a lot harder to mess up than YAML

Sorting order is alphabetical with world-specific permissions taking priority.

Example Directory Structure

permissions/
    users/
        zml2008/
            00-me
            00-another
            10-grp (symlink)-> ../../group1
    worlds/
        world/
            [same as permissions/, takes priority]...
    groups
    anothergroup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment