summaryrefslogtreecommitdiffstats
path: root/src/Pages/App/Cabins.cshtml.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Pages/App/Cabins.cshtml.cs')
-rw-r--r--src/Pages/App/Cabins.cshtml.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Pages/App/Cabins.cshtml.cs b/src/Pages/App/Cabins.cshtml.cs
new file mode 100644
index 0000000..5a94c08
--- /dev/null
+++ b/src/Pages/App/Cabins.cshtml.cs
@@ -0,0 +1,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();
+ }
+ }
+} \ No newline at end of file