|
@@ -3,6 +3,13 @@ using System.Linq;
|
|
|
|
|
|
namespace InABox.Core
|
|
namespace InABox.Core
|
|
{
|
|
{
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// Causes a property to update its editable status based on <see cref="SecurityDescriptor"/>. If the current user does not have the security token,
|
|
|
|
+ /// then the property's visiblity is restricted to at most <see cref="Editable"/>.
|
|
|
|
+ /// </summary>
|
|
|
|
+ /// <remarks>
|
|
|
|
+ /// <see cref="Editable"/> defaults to <see cref="Editable.Hidden"/>.
|
|
|
|
+ /// </remarks>
|
|
[AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
|
|
[AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
|
|
public class SecurityAttribute : Attribute
|
|
public class SecurityAttribute : Attribute
|
|
{
|
|
{
|