Framework: Marking the Permissions.RequiresOwnership property obsolete

This commit is contained in:
Lombiq 2019-08-13 15:25:49 +02:00 committed by Benedek Farkas
parent ec9673a1ca
commit 9ce774efa5

View File

@ -1,4 +1,5 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
namespace Orchard.Security.Permissions {
public class Permission {
@ -7,10 +8,12 @@ namespace Orchard.Security.Permissions {
public string Category { get; set; }
public IEnumerable<Permission> ImpliedBy { get; set; }
public bool RequiresOwnership { get; set; }
public static Permission Named(string name) {
return new Permission { Name = name };
}
[Obsolete("This property is not used anywhere, so it shouldn't be referenced.")]
public bool RequiresOwnership { get; set; }
}
}