From 1c7bb653de398a8d3c5ce59f38f110aeaf848744 Mon Sep 17 00:00:00 2001 From: Shish Date: Sat, 28 Apr 2012 11:02:12 +0100 Subject: [PATCH] example of a moderator class --- README.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.txt b/README.txt index bf92b52e..fc59aca1 100644 --- a/README.txt +++ b/README.txt @@ -87,6 +87,14 @@ new UserClass("anonymous", "base", array( "create_image_report" => True, )); +For a moderator class, being a regular user who can delete images and +comments: + +new UserClass("moderator", "user", array( + "delete_image" => True, + "delete_comment" => True, +)); + For a list of permissions, see core/userclass.class.php