Exemple #1
0
        public IList <NotificationAccess> GetNotificationAccessesForCurrentUser()
        {
            var loggedUser               = AuthenticationProvider.GetLoggedUser();
            var loggedUserRole           = loggedUser.Role;
            var userNotificationAccesses = NotificationAccesses.Where(x =>
                                                                      x.Users.Any(y => y == loggedUser) ||
                                                                      x.AllowEveryone).ToList();

            return(userNotificationAccesses);
        }
Exemple #2
0
 public IList <NotificationAccess> GetNotificationAccesses()
 {
     return(NotificationAccesses.ToList());
 }