|
@@ -8,12 +8,6 @@ namespace InABox.Core
|
|
|
{
|
|
|
public Type SecurityDescriptor { get; set; }
|
|
|
|
|
|
- /// <summary>
|
|
|
- /// If the user does not have the security token, this property will be <see cref="Visible.Visible"/> if <see langword="true"/>
|
|
|
- /// or <see cref="Visible.Hidden"/> if <see langword="false"/>. The default is <see langword="false"/>.
|
|
|
- /// </summary>
|
|
|
- public bool Visible { get; set; } = false;
|
|
|
-
|
|
|
public Editable Editable { get; set; } = Editable.Hidden;
|
|
|
|
|
|
private SecurityAttribute() { }
|
|
@@ -27,8 +21,11 @@ namespace InABox.Core
|
|
|
|
|
|
public virtual SecurityAttribute Clone()
|
|
|
{
|
|
|
- var result = new SecurityAttribute(SecurityDescriptor);
|
|
|
- result.SecurityDescriptor = SecurityDescriptor;
|
|
|
+ var result = new SecurityAttribute(SecurityDescriptor)
|
|
|
+ {
|
|
|
+ SecurityDescriptor = SecurityDescriptor,
|
|
|
+ Editable = Editable
|
|
|
+ };
|
|
|
return result;
|
|
|
}
|
|
|
}
|