blob: 6b11131ad06fb130c872d80d872575fe213fde15 [file] [log] [blame]
using Casbin.Model;
namespace Casbin
{
public static class ReadOnlyAssertionExtension
{
public static bool TryGetTokenIndex(this IReadOnlyAssertion assertion, string tokenName, out int index)
{
return assertion.Tokens.TryGetValue(tokenName, out index);
}
}
}