From 47a8fdc9c725bfa468e77366e6d136400ef5e947 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 7 May 2017 09:31:55 -0400 Subject: View Group page --- Project-Unite/ACL.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Project-Unite/ACL.cs') diff --git a/Project-Unite/ACL.cs b/Project-Unite/ACL.cs index cc1c511..ce3bb15 100644 --- a/Project-Unite/ACL.cs +++ b/Project-Unite/ACL.cs @@ -109,6 +109,12 @@ namespace Project_Unite return hpr.ActionLink(topic.Subject, "ViewTopic", "Forum", new { id = topic.Discriminator }, null); } + public static string GetUserGroup(string uid) + { + var db = new ApplicationDbContext(); + return db.Users.FirstOrDefault(x => x.Id == uid).GroupId; + } + public static string ResolveUserLinksInMarkdown(string mkdn) { string[] words = mkdn.Split(' '); -- cgit v1.2.3