public override string[] GetRolesForUser(string username) { return(CacheService.Get(GetRolesForUserCacheKey.F(username), CacheTimeSpan.TwoMinutes, () => { var user = SystemUserService.GetUserByEmail(username, true); var roles = SystemUserService.GetUserRoles(user.Id, true); return roles.IsNull() || roles.IsEmpty() ? new String[] {} : roles.Select(role => role.Role.SystemName).ToArray(); })); }