1.1 --- a/public/IAdminSystem.h Tue Sep 25 21:45:25 2007 +0000
1.2 +++ b/public/IAdminSystem.h Wed Sep 26 01:03:20 2007 +0000
1.3 @@ -35,7 +35,7 @@
1.4 #include <IShareSys.h>
1.5
1.6 #define SMINTERFACE_ADMINSYS_NAME "IAdminSys"
1.7 -#define SMINTERFACE_ADMINSYS_VERSION 4
1.8 +#define SMINTERFACE_ADMINSYS_VERSION 5
1.9
1.10 /**
1.11 * @file IAdminSystem.h
1.12 @@ -702,6 +702,21 @@
1.13 * @return Immunity level value.
1.14 */
1.15 virtual unsigned int GetAdminImmunityLevel(AdminId id) =0;
1.16 +
1.17 + /**
1.18 + * @brief Computers access to an override.
1.19 + *
1.20 + * @param client Client index.
1.21 + * @param override Override name.
1.22 + * @param flags Default flags.
1.23 + * @param override_only If false, if a command matches the override,
1.24 + * then its flags will override the default.
1.25 + * @return True if the client has access, false otherwise.
1.26 + */
1.27 + virtual bool CheckAccess(int client,
1.28 + const char *cmd,
1.29 + AdminFlag flags,
1.30 + bool override_only) =0;
1.31 };
1.32 }
1.33