Pass a version object into user::hasAppVersionModifyPermission() instead of
the integer that is the index of the version in the database.
This commit is contained in:
@@ -16,7 +16,8 @@ require_once(BASE."include/distributions.php");
|
||||
if ($_REQUEST['sub'])
|
||||
{
|
||||
$oTest = new testData($_REQUEST['iTestingId']);
|
||||
if (!($_SESSION['current']->hasAppVersionModifyPermission($oTest->iVersionId)))
|
||||
$oVersion = new Version($oTest->iVersionId);
|
||||
if(!($_SESSION['current']->hasAppVersionModifyPermission($oVersion)))
|
||||
{
|
||||
errorpage("Insufficient privileges.");
|
||||
exit;
|
||||
|
||||
Reference in New Issue
Block a user