コード例 #1
0
        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);
//            }
        }
コード例 #2
0
        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"));
        }
コード例 #3
0
        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);
            //            }
        }