17 lines
508 B
C#
17 lines
508 B
C#
using LucideBlazor;
|
|
using Moonlight.Frontend.Interfaces;
|
|
using Moonlight.Frontend.Models;
|
|
|
|
namespace MoonlightServers.Frontend.Implementations;
|
|
|
|
public class PermissionProvider : IPermissionProvider
|
|
{
|
|
public Task<PermissionCategory[]> GetPermissionsAsync()
|
|
{
|
|
return Task.FromResult<PermissionCategory[]>([
|
|
new PermissionCategory("Demo", typeof(SparklesIcon), [
|
|
new Permission("Permissions:Demo", "Demo", "Access to demo page")
|
|
])
|
|
]);
|
|
}
|
|
} |