CMS MADE SIMPLE FORGE

MC Factory

 

[#7729] Error on deletion.

avatar
Created By: Pat (Pat)
Date Submitted: Thu Mar 22 12:22:55 -0400 2012

Assigned To:
Version: MCFactory 3.1.8
CMSMS Version: 1.9.4.2
Severity: Minor
Resolution: None
State: Open
Summary:
Error on deletion.
Detailed Description:
Error when deleting a record: Error! Access Denied. Please check your
permissions.

User-Group has the permisssion to "Manaage MyModule"!

I could fix the error on changing the action.delete.php in the generated module:

Original:
if (!$this->CheckAccess('Manage MC Factory')) {
return $this->DisplayErrorPage($id, $params, $returnid,
$this->Lang('accessdenied'));
}

Fix:
if (!$this->CheckAccess('Manage MyModule')) {
return $this->DisplayErrorPage($id, $params, $returnid,
$this->Lang('accessdenied'));
}

The CheckAcess() - Call ist not generated with the right Modulename.

Best Greetings, Pat


History