Package org.nemesis.forum.exception

Examples of org.nemesis.forum.exception.UnauthorizedException


    //If the user is an amdin of both forums
    if (permissions.isSystemOrForumAdmin()
      && (newThread.hasPermission(Constants.SYSTEM_ADMIN) || newThread.hasPermission(Constants.FORUM_ADMIN))) {
      thread.moveMessage(message, newThread, parentMessage);
    } else {
      throw new UnauthorizedException();
    }
  }
View Full Code Here


      }
     
     
      int perm=Integer.parseInt(request.getParameter("type"));
      if(perm==Constants.FORUM_ADMIN && ! SecurityTools.isSystemAdmin(getAuthToken(request))){
         throw new UnauthorizedException();
      }

      forum.addUserPermission(user, perm);
     
    } catch (NotFoundException e) {
View Full Code Here

TOP

Related Classes of org.nemesis.forum.exception.UnauthorizedException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.