Merge pull request #2045 from sbwalker/dev
Fixed issue with IHostResources not being registered properly
This commit is contained in:
		| @ -252,7 +252,7 @@ | ||||
| 		for (int i = 0; i < _permissions.Count; i++) | ||||
| 		{ | ||||
| 			permission = _permissions[i]; | ||||
| 			List<string> ids = permission.Permissions.Split(';').ToList(); | ||||
| 			List<string> ids = permission.Permissions.Split(';', StringSplitOptions.RemoveEmptyEntries).ToList(); | ||||
| 			ids.Remove("!" + RoleNames.Everyone); // remove deny all users | ||||
| 			ids.Remove("!" + RoleNames.Registered); // remove deny registered users | ||||
| 			if (UserSecurity.IsAuthorized(PageState.User, RoleNames.Host)) | ||||
|  | ||||
| @ -240,7 +240,7 @@ namespace Oqtane.Services | ||||
|         [Obsolete("This property of ServiceBase is deprecated. Cross tenant service calls are not supported.", false)] | ||||
|         public Alias Alias { get; set; } | ||||
|  | ||||
|         [Obsolete("This method is obsolete. Use CreateApiUrl(string entityName, int entityId) instead.", false)] | ||||
|         [Obsolete("This method is obsolete. Use CreateAuthorizationPolicyUrl(string url, string entityName, int entityId) where entityName = EntityNames.Module instead.", false)] | ||||
|         public string CreateAuthorizationPolicyUrl(string url, int entityId) | ||||
|         { | ||||
|             return url + ((url.Contains("?")) ? "&" : "?") + "entityid=" + entityId.ToString(); | ||||
|  | ||||
| @ -395,6 +395,7 @@ namespace Oqtane.Pages | ||||
|                 var obj = Activator.CreateInstance(type) as IHostResources; | ||||
|                 foreach (var resource in obj.Resources) | ||||
|                 { | ||||
|                     resource.Declaration = ResourceDeclaration.Global; | ||||
|                     ProcessResource(resource, 0); | ||||
|                 } | ||||
|             } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Shaun Walker
					Shaun Walker