mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-25 06:00:28 +01:00
Added user edit check DisableModuls
This commit is contained in:
parent
c601ac17df
commit
99d5804ffa
@ -92,6 +92,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);
|
||||
|
||||
$this->app->erp->MenuEintrag("index.php?module=PLACEHOLDER_MODULENAME&action=edit&id=$id", "Details");
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user