mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-19 18:27:55 +08:00
Framework: Marking the Permissions.RequiresOwnership property obsolete
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
using System.Collections.Generic;
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace Orchard.Security.Permissions {
|
namespace Orchard.Security.Permissions {
|
||||||
public class Permission {
|
public class Permission {
|
||||||
@@ -7,10 +8,12 @@ namespace Orchard.Security.Permissions {
|
|||||||
public string Category { get; set; }
|
public string Category { get; set; }
|
||||||
|
|
||||||
public IEnumerable<Permission> ImpliedBy { get; set; }
|
public IEnumerable<Permission> ImpliedBy { get; set; }
|
||||||
public bool RequiresOwnership { get; set; }
|
|
||||||
|
|
||||||
public static Permission Named(string name) {
|
public static Permission Named(string name) {
|
||||||
return new Permission { Name = name };
|
return new Permission { Name = name };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Obsolete("This property is not used anywhere, so it shouldn't be referenced.")]
|
||||||
|
public bool RequiresOwnership { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user