2 Replies Latest reply on May 19, 2004 3:26 PM by javamac

    Forums admin security and roles

    mgalal

      Hi,
      I was fiddling around trying to find out how to assign moderators,admin, and permissions. I could only find forum specific attributes such as Read/Write, etc. How to do assign a user a moderator role, or an admin role of specific category, where they can add forums themselves. The DB didn't give a meclue to the different between 'user' and 'admin' except that they have different groups. Is the logic behind all this encapsulated in the code? Does that mean I have to create some users with admin role outright?

      Thanks for your hard work.
      -Medhat Galal

        • 1. Re: Forums admin security and roles

          The group for the forums are specified in the Nukes security which is defined in the jboss-service.xml of the Core module and is saved in the database.

          For instance :

          <permission
           group="JBoss-forums"
           component-pattern="bb::"
           instance-pattern=".*:.*:"
           level="MODERATE"/>
          


          It will give the moderator role on all the forums for the users in the JBoss-forums group. You can change the target category/forum in the instance pattern. Example : instance-pattern="(a|b):.*:" will specify all the forums in the category a or b.

          Obviously Nukes lacks a security rule editor, because you have to modify the security attribute through the JMX-console.

          julien

          • 2. Re: Forums admin security and roles
            javamac

            Does this mean that I should create a "moderator" group, assign people to that moderator group and then update the jboss-service.xml file?

            <permission
             group="moderator"
             component-pattern="bb::"
             instance-pattern=".*:.*:"
             level="MODERATE"/>
            



            "cooper" wrote:
            The group for the forums are specified in the Nukes security which is defined in the jboss-service.xml of the Core module and is saved in the database.

            For instance :

            <permission
             group="JBoss-forums"
             component-pattern="bb::"
             instance-pattern=".*:.*:"
             level="MODERATE"/>
            


            It will give the moderator role on all the forums for the users in the JBoss-forums group. You can change the target category/forum in the instance pattern. Example : instance-pattern="(a|b):.*:" will specify all the forums in the category a or b.

            Obviously Nukes lacks a security rule editor, because you have to modify the security attribute through the JMX-console.

            julien