admin plugin now reads overrides from separate file (but also admin_levels.cfg for backwards compatibility)
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401320
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* Use this section to tweak admin permission levels and groupings.
|
||||
* You can also define admin roles in this section.
|
||||
* There is no reason to edit this file. Core uses this to map each named
|
||||
* access type to a given ASCII character. The names are all pre-defined.
|
||||
*/
|
||||
Levels
|
||||
{
|
||||
@@ -45,21 +45,4 @@ Levels
|
||||
*/
|
||||
"root" "z"
|
||||
}
|
||||
|
||||
/**
|
||||
* By default, commands are registered with three pieces of information:
|
||||
* 1)Command Name (for example, "csdm_enable")
|
||||
* 2)Command Group Name (for example, "CSDM")
|
||||
* 3)Command Level (for example, "changemap")
|
||||
* You can override the default flags assigned to individual commands or command groups in this way.
|
||||
* To override a group, use the "@" character before the name. Example:
|
||||
* Examples:
|
||||
* "@CSDM" "b" // Override the CSDM group to 'b' flag
|
||||
* "csdm_enable" "bgi" // Override the csdm_enable command to 'bgi' flags
|
||||
* Note that for overrides, order is important. In the above example, csdm_enable overwrites
|
||||
* any setting that csdm_enable previously had.
|
||||
*/
|
||||
Overrides
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
Overrides
|
||||
{
|
||||
/**
|
||||
* By default, commands are registered with three pieces of information:
|
||||
* 1)Command Name (for example, "csdm_enable")
|
||||
* 2)Command Group Name (for example, "CSDM")
|
||||
* 3)Command Level (for example, "changemap")
|
||||
* You can override the default flags assigned to individual commands or command groups in this way.
|
||||
* To override a group, use the "@" character before the name. Example:
|
||||
* Examples:
|
||||
* "@CSDM" "b" // Override the CSDM group to 'b' flag
|
||||
* "csdm_enable" "bgi" // Override the csdm_enable command to 'bgi' flags
|
||||
* Note that for overrides, order is important. In the above example, csdm_enable overwrites
|
||||
* any setting that csdm_enable previously had.
|
||||
*/
|
||||
}
|
||||
Reference in New Issue
Block a user