Added user edit check DisableModuls

This commit is contained in:
OpenXE 2022-11-10 16:00:25 +00:00
parent c601ac17df
commit 99d5804ffa
2 changed files with 11 additions and 0 deletions

View File

@ -91,6 +91,12 @@ class PLACEHOLDER_MODULECLASSNAME {
function PLACEHOLDER_EDIT() {
$id = $this->app->Secure->GetGET('id');
// Check if other users are editing this id
if($this->app->erp->DisableModul('artikel',$id))
{
return;
}
$this->app->Tpl->Set('ID', $id);

View File

@ -257,6 +257,11 @@ class Produktion {
function produktion_edit() {
$id = $this->app->Secure->GetGET('id');
if($this->app->erp->DisableModul('produktion',$id))
{
return;
}
$submit = $this->app->Secure->GetPOST('submit');
$this->app->Tpl->Set('ID', $id);