Adding the first bit of permissions checking as an example. See cmd_who and the Object class's user_has_perm method for examples. We'll need to start fleshing this stuff out before adding many more new commands. For existing games, remove your auth_permissions table and re-sync your DB.

This commit is contained in:
Greg Taylor 2007-05-09 15:53:53 +00:00
parent f1dd985294
commit 2fc06adcfa
3 changed files with 51 additions and 17 deletions

View file

@ -21,4 +21,5 @@ class GenericPerm(models.Model):
("shutdown", "May @shutdown the site"),
("tel_anywhere", "May @teleport anywhere"),
("tel_anyone", "May @teleport anything"),
("see_session_data", "May see detailed player session data"),
)