Loosening 6DValidate permissions
This commit is contained in:
parent
989d0f401e
commit
9c5c938157
@ -2235,10 +2235,6 @@
|
|||||||
if ($('#D6Validated').is(':checked'))
|
if ($('#D6Validated').is(':checked'))
|
||||||
$('#D6Validated').attr("disabled",true);
|
$('#D6Validated').attr("disabled",true);
|
||||||
|
|
||||||
if (currentUserId != currentRequestor)
|
|
||||||
$('#D6Validated').attr("disabled", true);
|
|
||||||
|
|
||||||
|
|
||||||
if ($('#D8Completed').is(':checked')) {
|
if ($('#D8Completed').is(':checked')) {
|
||||||
$('#D8Completed').attr("disabled", true);
|
$('#D8Completed').attr("disabled", true);
|
||||||
$('#txtD8TeamRecognition').attr("disabled", true);
|
$('#txtD8TeamRecognition').attr("disabled", true);
|
||||||
@ -3174,7 +3170,7 @@
|
|||||||
})
|
})
|
||||||
$('#D6Validated').on('change', function () {
|
$('#D6Validated').on('change', function () {
|
||||||
data = ReturnModelObject();
|
data = ReturnModelObject();
|
||||||
if (currentUserId == data.RequestorID) {
|
if (currentUserId == data.RequestorID || '@ViewBag.Is8DQA' == "true" || '@ViewBag.CanCompleteCA' == "true") {
|
||||||
if (!checkCanCompleteCA()) {
|
if (!checkCanCompleteCA()) {
|
||||||
$('#D6Validated').prop('checked', false);
|
$('#D6Validated').prop('checked', false);
|
||||||
$('#cover-spin').hide(0);
|
$('#cover-spin').hide(0);
|
||||||
@ -3198,7 +3194,7 @@
|
|||||||
else {
|
else {
|
||||||
|
|
||||||
$('#D6Validated').prop('checked', false);
|
$('#D6Validated').prop('checked', false);
|
||||||
alert('Only the 8D requestor can validate')
|
alert('Only the 8D requestor or QA can validate')
|
||||||
$('#cover-spin').hide(0);
|
$('#cover-spin').hide(0);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user