23 lines
774 B
C#
23 lines
774 B
C#
using RSecurityBackend.Models.Generic;
|
|
using System;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace RSecurityBackend.Services
|
|
{
|
|
/// <summary>
|
|
/// Permission checker service
|
|
/// </summary>
|
|
public interface IUserPermissionChecker
|
|
{
|
|
/// <summary>
|
|
/// check to see if user has permission to do operation
|
|
/// </summary>
|
|
/// <param name="userId">userId</param>
|
|
/// <param name="sessionId">sessionId</param>
|
|
/// <param name="securableItemShortName">form</param>
|
|
/// <param name="operationShortName">operation</param>
|
|
/// <returns>true if has permission</returns>
|
|
Task<RServiceResult<bool>> Check(Guid userId, Guid sessionId, string securableItemShortName, string operationShortName);
|
|
}
|
|
}
|