Skip to content

Permissions

ementalo edited this page Aug 13, 2011 · 3 revisions

Below is an example of a permissions file

<?xml version="1.0"?>
<Permissions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Groups>
    <Group Name="default" IsDefault="true">
      <Prefix>[Admin]</Prefix>
      <Suffix></Suffix>
      <CanBuild>true</CanBuild>
      <Permission>
        <Allowed>chraft.list</Allowed>
        <Denied>chraft.set</Denied>
      </Permission>
    </Group>
    <Group Name="admin" Inherits="Default">
      <Prefix>[Admin]</Prefix>
      <Suffix></Suffix>
      <CanBuild>true</CanBuild>
      <Permission>
        <Allowed>*</Allowed>
        <Denied>chraft.set</Denied>
      </Permission>
    </Group>
  </Groups>

  <Users>
    <User Name="ementalo" Groups="Admin">
      <Prefix></Prefix>
      <Suffix></Suffix>
      <CanBuild>true</CanBuild>
      <Permission>
        <Allowed>chraft.say</Allowed>
        <Denied>chraft.list</Denied>
      </Permission>
    </User>
  </Users>
</Permissions>

Breakdown :

<Group Name="default" IsDefault="true"> 
- The name of the group and the optional IsDefault parameter. At least one group has to have this parameter.
<Prefix>[Admin]</Prefix>
– The prefix that will be pre-appended to chat (not functional yet)
<Suffix></Suffix>
– The suffix that is appended after the usernam (not functional yet)
<CanBuild>true</CanBuild>
– Whether this group can build or not
<Allowed>chraft.list</Allowed>
– Allowed permission sets. * denotes all (allowed only) MUST be within a <Permission></Permission> node
<Denied>chraft.set</Denied>
- Denied permission sets.
Clone this wiki locally