PCHD#55257 Contractbeheer - beperkte autorisatie
svn path=/Website/trunk/; revision=41413
This commit is contained in:
@@ -46,7 +46,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.canUSEwrite) );
|
||||
user.auth_required_or_abort(this_cnt.canChange || (S("cntuse_can_edit_datum") && this_cnt.canUSEwrite && this_cnt.canMANwrite) );
|
||||
|
||||
if (!cnt_info.locked_user_key || cnt_info.locked_user_key == user_key)
|
||||
{
|
||||
|
||||
@@ -39,7 +39,7 @@ if (!isNew)
|
||||
{
|
||||
var cnt_info = cnt.cnt_contract_info(cnt_key); // Haal gegevens van het contract op.
|
||||
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.canUSEread && this_cnt.canMANwrite) );
|
||||
}
|
||||
else
|
||||
{ // Nieuw contract
|
||||
|
||||
@@ -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.canUSEwrite) )
|
||||
if (this_cnt.canChange || (S("cntuse_can_edit_datum") && this_cnt.canUSEwrite && this_cnt.canMANwrite) )
|
||||
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()"});
|
||||
@@ -228,7 +228,7 @@ var urlMail = "../shared/queuemail.asp?pcode=CNTMAI&defemail_key=" + defemail_ke
|
||||
buttons.push({title: L("lcl_shared_order"), icon: "mld_order.png", action:"cnt_orders()" });
|
||||
}
|
||||
|
||||
if (this_cnt.canSplit || (S("cntuse_can_edit_datum") && this_cnt.canUSEwrite) )
|
||||
if (this_cnt.canSplit || (S("cntuse_can_edit_datum") && this_cnt.canUSEwrite && this_cnt.canMANwrite) )
|
||||
buttons.push({title: L("lcl_cnt_newversion"), icon: "newversion.png", action:"cnt_newversion()", tooltip: L("lcl_cnt_newversion_hint")}); // CNT#16529
|
||||
if (this_cnt.canInactivate)
|
||||
buttons.push({title: L("lcl_cnt_inactivate") , action:"cnt_inactivate()", icon: "cnt_inactive.png"});
|
||||
|
||||
@@ -21,7 +21,7 @@ var cnt_key = getQParamInt("cnt_key");
|
||||
|
||||
var cnt_info = cnt.cnt_contract_info(cnt_key);
|
||||
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.canSplit || (S("cntuse_can_edit_datum") && this_cnt.canUSEwrite)); // Kan ik dit contract splitten
|
||||
user.auth_required_or_abort(this_cnt.canSplit || (S("cntuse_can_edit_datum") && this_cnt.canUSEwrite && this_cnt.canMANwrite)); // Kan ik dit contract splitten
|
||||
|
||||
var sql = "SELECT cnt_contract_looptijd_van mindate"
|
||||
+ " , cnt_contract_looptijd_tot maxdate"
|
||||
|
||||
Reference in New Issue
Block a user