PCHD#55257 Contractbeheer - beperkte autorisatie

svn path=/Website/trunk/; revision=41288
This commit is contained in:
Erik Groener
2019-03-05 07:44:05 +00:00
parent 7377e2c664
commit bad83b0f37
2 changed files with 2 additions and 2 deletions

View File

@@ -45,7 +45,7 @@ if (cnt_key > -1)
var cnt_info = cnt.cnt_contract_info(cnt_key); // nog heel beperkt
var this_cnt = cnt.func_enabled_contract(cnt_key, cnt_info); // Wat heb ik zoal aan rechten op dit contract?
user.auth_required_or_abort(this_cnt.canChange || (S("cntuse_can_edit_datum") && this_cnt.canUSEread) );
user.auth_required_or_abort(this_cnt.canChange || (S("cntuse_can_edit_datum") && this_cnt.canUSEwrite) );
if (!cnt_info.locked_user_key || cnt_info.locked_user_key == user_key)
{

View File

@@ -216,7 +216,7 @@ var urlMail = "../shared/queuemail.asp?pcode=CNTMAI&defemail_key=" + defemail_ke
var isLocked = (cnt_info.locked_user_key && cnt_info.locked_user_key != user_key);
if (cnt_info.verwijderdatum == null && !isLocked)
{
if (this_cnt.canChange || (S("cntuse_can_edit_datum") && this_cnt.canUSEread) )
if (this_cnt.canChange || (S("cntuse_can_edit_datum") && this_cnt.canUSEwrite) )
buttons.push({title: L("lcl_change"), icon: "wijzigen.png", action:"cnt_change()" });
if (this_cnt.canCopy)
buttons.push({title: L("lcl_cnt_copy"), icon: "fa-copy", action: "cnt_copy()"});