PCHD#55257 Contractbeheer - beperkte autorisatie
svn path=/Website/trunk/; revision=41288
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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()"});
|
||||
|
||||
Reference in New Issue
Block a user