Beispiel #1
0
        public ActionResult Types(FormCollection form)
        {
            Lite <RoleEntity> role = this.ExtractLite <RoleEntity>("Role");

            var prp = TypeAuthLogic.GetTypeRules(role).ApplyChanges(this, "");;

            TypeAuthLogic.SetTypeRules(prp.Value);

            return(RedirectToAction("Types", new { role = role.Id }));
        }
 public void SetTypeRules([Required, FromBody] TypeRulePack rules)
 {
     BasicPermission.AdminRules.AssertAuthorized();
     TypeAuthLogic.SetTypeRules(rules);
 }
Beispiel #3
0
 public void SetTypeRules(TypeRulePack rules)
 {
     BasicPermission.AdminRules.AssertAuthorized();
     TypeAuthLogic.SetTypeRules(rules);
 }