private void InitializePropertySources() { IPropertyAccess DefaultPropertyAccess = new EmptyPropertyAccess(); PropertySource["portal"] = DefaultPropertyAccess; PropertySource["tab"] = DefaultPropertyAccess; PropertySource["host"] = DefaultPropertyAccess; PropertySource["module"] = DefaultPropertyAccess; PropertySource["user"] = DefaultPropertyAccess; PropertySource["membership"] = DefaultPropertyAccess; PropertySource["profile"] = DefaultPropertyAccess; //if (CurrentAccessLevel >= Scope.Configuration) //{ // if (PortalSettings != null) // { // PropertySource["portal"] = PortalSettings; // PropertySource["tab"] = PortalSettings.ActiveTab; // } // PropertySource["host"] = new HostPropertyAccess(); // if (ModuleInfo != null) // { // PropertySource["module"] = ModuleInfo; // } //} //if (CurrentAccessLevel >= Scope.DefaultSettings && !(User == null || User.UserID == -1)) //{ // PropertySource["user"] = User; // PropertySource["membership"] = new MembershipPropertyAccess(User); // PropertySource["profile"] = new ProfilePropertyAccess(User); //} }
private void InitializePropertySources() { IPropertyAccess DefaultPropertyAccess = new EmptyPropertyAccess(); PropertySource["portal"] = DefaultPropertyAccess; PropertySource["tab"] = DefaultPropertyAccess; PropertySource["host"] = DefaultPropertyAccess; PropertySource["module"] = DefaultPropertyAccess; PropertySource["user"] = DefaultPropertyAccess; PropertySource["membership"] = DefaultPropertyAccess; PropertySource["profile"] = DefaultPropertyAccess; //if (CurrentAccessLevel >= Scope.Configuration) //{ // if (PortalSettings != null) // { // PropertySource["portal"] = PortalSettings; // PropertySource["tab"] = PortalSettings.ActiveTab; // } // PropertySource["host"] = new HostPropertyAccess(); // if (ModuleInfo != null) // { // PropertySource["module"] = ModuleInfo; // } //} //if (CurrentAccessLevel >= Scope.DefaultSettings && !(User == null || User.UserID == -1)) //{ // PropertySource["user"] = User; // PropertySource["membership"] = new MembershipPropertyAccess(User); // PropertySource["profile"] = new ProfilePropertyAccess(User); //} }