mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
Framework: Marking the Permissions.RequiresOwnership property obsolete
This commit is contained in:
parent
ec9673a1ca
commit
9ce774efa5
@ -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; }
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user