THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
For example, if you want to check to see if a user has can post a weblog entry in a weblog, you would do this:
Code Block |
---|
WeblogPermssion desiredPerm = new WeblogPermission(weblog, "post"WeblogPermission.POST); boolean allowed = userManager.checkPermssion(desiredPerm, user); |
...