Ejemplo n.º 1
0
 /// <summary>
 /// Check whether the specified user is authorized to interact with this session.
 /// @see AuthorizeUser, DenyUser, DenyAllUsers
 /// </summary>
 /// <param name="userName">The name of the user to check.</param>
 /// <returns>true if the user is authorized, false otherwise.</returns>
 public static bool IsAuthorizedUser(string userName)
 {
     using (FStringUnsafe userNameUnsafe = FStringPool.New(userName))
     {
         return(Native_FApp.IsAuthorizedUser(ref userNameUnsafe.Array));
     }
 }