mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 14:46:56 +02:00
EONE-43 (Bug): Installation (and uninstall) of plugins now working
This commit is contained in:
@@ -392,7 +392,7 @@ class e107plugin
|
||||
|
||||
$mes->add("Userclass: ".$action.": ".$class_name." : ".$class_description, E_MESSAGE_DEBUG);
|
||||
|
||||
if (!$e107->user_class->isAdmin)
|
||||
if (!$e107->user_class->isAdmin())
|
||||
{
|
||||
$e107->user_class = new user_class_admin; // We need the extra methods of the admin extension
|
||||
}
|
||||
|
@@ -92,6 +92,13 @@ class user_class
|
||||
$this->readTree(TRUE); // Initialise the classes on entry
|
||||
}
|
||||
|
||||
/**
|
||||
* Return value of isAdmin
|
||||
*/
|
||||
public function isAdmin()
|
||||
{
|
||||
return $this->isAdmin;
|
||||
}
|
||||
|
||||
/**
|
||||
* Ensure the tree of userclass data is stored in our object ($this->class_tree).
|
||||
|
Reference in New Issue
Block a user