void InitialisePermissions()
        {
            _groups     = new GroupTable();
            _nodes      = new PermissionTable();
            _userPerms  = new UserPermissionsTable();
            _groupPerms = new GroupPermissionsTable();
            _users      = new UserGroupsTable();

            _nodes.Initialise(this);
            _userPerms.Initialise(this);
            _groupPerms.Initialise(this);
            _users.Initialise(this);

            //Used to create default permissions
            _groups.Initialise(this);

//            try
//            {
//                ProgramLog.Error.Log("tdsm.help: " + IsPermitted("tdsm.help", true, "DeathCradle"));
//                ProgramLog.Error.Log("tdsm.oplogin: "******"tdsm.oplogin", true, "DeathCradle"));
//                ProgramLog.Error.Log("tdsm.exit: " + IsPermitted("tdsm.exit", true, "DeathCradle"));
//                ProgramLog.Error.Log("tdsm.exit,a: " + IsPermitted("tdsm.exit", false, "DeathCradle"));
//            }
//            catch (Exception e)
//            {
//                ProgramLog.Log(e);
//            }
        }
 bool IPermissionHandler.AddOrUpdateGroup(string name, bool applyToGuests = false, string parent = null, byte r = 255, byte g = 255, byte b = 255, string prefix = null, string suffix = null)
 {
     if (PermissionsHandler.FindGroup(name) == null)
     {
         return(_groups.Insert(name, applyToGuests, parent, r, g, b, this, null, prefix, suffix) > 0L);
     }
     else
     {
         return(GroupTable.UpdateGroup(name, applyToGuests, parent, r, g, b, this, prefix, suffix));
     }
 }
        void InitialisePermissions()
        {
            _groups = new GroupTable();
            _nodes = new PermissionTable();
            _userPerms = new UserPermissions();
            _groupPerms = new GroupPermissions();
            _users = new UsersTable();

            _groups.Initialise(this);
            _nodes.Initialise(this);
            _userPerms.Initialise(this);
            _groupPerms.Initialise(this);
            _users.Initialise(this);
        }
Exemple #4
0
        void InitialisePermissions()
        {
            _groups     = new GroupTable();
            _nodes      = new PermissionTable();
            _userPerms  = new UserPermissions();
            _groupPerms = new GroupPermissions();
            _users      = new UsersTable();

            _groups.Initialise(this);
            _nodes.Initialise(this);
            _userPerms.Initialise(this);
            _groupPerms.Initialise(this);
            _users.Initialise(this);
        }
        void InitialisePermissions()
        {
            _groups     = new GroupTable();
            _nodes      = new PermissionTable();
            _userPerms  = new UserPermissionsTable();
            _groupPerms = new GroupPermissionsTable();
            _users      = new UserGroupsTable();

            _groups.Initialise(this);
            _nodes.Initialise(this);
            _userPerms.Initialise(this);
            _groupPerms.Initialise(this);
            _users.Initialise(this);

            ProgramLog.Error.Log("tdsm.help: " + IsPermitted("tdsm.help", true, "DeathCradle"));
            ProgramLog.Error.Log("tdsm.oplogin: "******"tdsm.oplogin", true, "DeathCradle"));
            ProgramLog.Error.Log("tdsm.exit: " + IsPermitted("tdsm.exit", true, "DeathCradle"));
            ProgramLog.Error.Log("tdsm.exit,a: " + IsPermitted("tdsm.exit", false, "DeathCradle"));
        }
        void InitialisePermissions()
        {
            _groups = new GroupTable();
            _nodes = new PermissionTable();
            _userPerms = new UserPermissionsTable();
            _groupPerms = new GroupPermissionsTable();
            _users = new UserGroupsTable();

            _nodes.Initialise(this);
            _userPerms.Initialise(this);
            _groupPerms.Initialise(this);
            _users.Initialise(this);

            //Used to create default permissions
            _groups.Initialise(this);

            //            try
            //            {
            //                ProgramLog.Error.Log("tdsm.help: " + IsPermitted("tdsm.help", true, "DeathCradle"));
            //                ProgramLog.Error.Log("tdsm.oplogin: "******"tdsm.oplogin", true, "DeathCradle"));
            //                ProgramLog.Error.Log("tdsm.exit: " + IsPermitted("tdsm.exit", true, "DeathCradle"));
            //                ProgramLog.Error.Log("tdsm.exit,a: " + IsPermitted("tdsm.exit", false, "DeathCradle"));
            //            }
            //            catch (Exception e)
            //            {
            //                ProgramLog.Log(e);
            //            }
        }