diff options
| author | Michael <[email protected]> | 2017-05-07 09:31:55 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-05-07 09:31:55 -0400 |
| commit | 47a8fdc9c725bfa468e77366e6d136400ef5e947 (patch) | |
| tree | 7f35dbefcb3b9f305d6b02950301f412f178e14d /Project-Unite/ACL.cs | |
| parent | 0ae47a126b1fb37ecbc80ecddd34a892fb6fd3b2 (diff) | |
| download | project-unite-47a8fdc9c725bfa468e77366e6d136400ef5e947.tar.gz project-unite-47a8fdc9c725bfa468e77366e6d136400ef5e947.tar.bz2 project-unite-47a8fdc9c725bfa468e77366e6d136400ef5e947.zip | |
View Group page
Diffstat (limited to 'Project-Unite/ACL.cs')
| -rw-r--r-- | Project-Unite/ACL.cs | 6 |
1 files changed, 6 insertions, 0 deletions
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(' '); |
