Skip to content

HistoryPermissionAttribute class

namespace: Serenity.Data   assembly: Serenity.Net.Core

Sets the permission to see the history of the records of the row, e.g. its changes in the audit log. Without it, the history of a record needs the read permission of its row (ReadPermissionAttribute), so everyone who can open a record can see who changed what in it. With it, e.g. [HistoryPermission("Northwind:Management")], only the users with that permission can.

[AttributeUsage(AttributeTargets.All)]
public class HistoryPermissionAttribute : PermissionAttributeBase

Public Members

name description
HistoryPermissionAttribute(…) Initializes a new instance of the HistoryPermissionAttribute class. (3 constructors)

See Also