FSN#36227 fac_srtnotificatie bewerkbaar via scaffolding

svn path=/Website/trunk/; revision=29337
This commit is contained in:
Erik Groener
2016-05-10 08:14:58 +00:00
parent 7326966ce5
commit 4fe459e1a9

View File

@@ -153,6 +153,16 @@ function model_fac_srtnotificatie()
if (!S("puo_smsaccount")) if (!S("puo_smsaccount"))
this.fields.notification_mode.bits[0].radios.splice(2, 1); this.fields.notification_mode.bits[0].radios.splice(2, 1);
if (user.has("WEB_FACTAB"))
{
// Een gebruiker met WEB_FACTAB-rechten mag meer.
this.fields.name.insertonly = false;
this.fields.xmlnode.insertonly = false;
this.fields.notification_url.insertonly = false;
this.fields.group.insertonly = false;
this.fields.id.seq = "fac_s_fac_srtnotificatie_key"; // Ook toevoegen..
this.REST_DELETE = generic_REST_DELETE(this); // en verwijderen.
}
var ext_sql = "(SELECT fac_srtnotificatie_key" var ext_sql = "(SELECT fac_srtnotificatie_key"
+ " , DECODE(BITAND(fac_srtnotificatie_mode, 1), 1,"+ safe.qL("lcl_on") +", '') status" + " , DECODE(BITAND(fac_srtnotificatie_mode, 1), 1,"+ safe.qL("lcl_on") +", '') status"
@@ -170,7 +180,7 @@ function model_fac_srtnotificatie()
}); });
this.REST_POST = generic_REST_POST(this); this.REST_POST = generic_REST_POST(this);
this.REST_PUT = generic_REST_PUT(this); this.REST_PUT = generic_REST_PUT(this);
// Verwijderen niet toegestaan. // Met alleen WEB_PRSSYS rechten is verwijderen niet toegestaan.
function fnshowusermode(oRs) function fnshowusermode(oRs)