summaryrefslogtreecommitdiffstats
path: root/src/Pages/App/Cabins.cshtml.cs
blob: 5a94c08658b9d93454ce103a5444e6c35ec2944f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;

namespace IOL.Fagprove.Pages.App
{
    public class Cabins : PageModel
    {
        public ActionResult OnGet()
        {
            if (!User.IsInRole("Administrator")) return Redirect("/app");
            return Page();
        }
    }
}