27 lines
928 B
C#
27 lines
928 B
C#
using System.Web.Mvc;
|
|
using Kreta.BusinessLogic.Helpers.SystemSettings;
|
|
using Kreta.BusinessLogic.Security;
|
|
using Kreta.Enums;
|
|
using Kreta.Web.Helpers;
|
|
using Kreta.Web.Security;
|
|
|
|
namespace Kreta.Web.Areas.Orarend.Controllers
|
|
{
|
|
[MvcRoleClaimsAuthorize(true)]
|
|
[MvcRolePackageDenyAuthorize(KretaClaimPackages.IsOnlyAlkalmozott.ClaimValue)]
|
|
[MvcRolePackageAuthorize(KretaClaimPackages.Gondviselo.ClaimValue)]
|
|
public class InformaciokFogadoorakController : Controller
|
|
{
|
|
public ActionResult Index()
|
|
{
|
|
var systemSettingsHelper = new SystemSettingsHelper(ConnectionTypeExtensions.GetSessionConnectionType());
|
|
|
|
if (!systemSettingsHelper.GetSystemSettingValue<bool>(RendszerBeallitasTipusEnum.Fogadoorak_megjelenitese))
|
|
{
|
|
return Redirect(Url.Content(CommonExtensions.GetDefaultPage()));
|
|
}
|
|
|
|
return View();
|
|
}
|
|
}
|
|
}
|