diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-05-26 05:28:59 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-05-26 05:28:59 +0000 |
commit | 7aed9239088b582a065da3fb63796ff66cd357c8 (patch) | |
tree | 8be9bc4faec21b20cbcc060ad5e9ca128465d09e /core/helpers/access.php | |
parent | 2966289b147ceae2fed79b9534840607bf38e0d8 (diff) |
Restructure the module lifecycle.
Install: <module>_installer::install() is called, any necessary tables
are created.
Activate: <module>_installer::activate() is called. Module
controllers are routable, helpers are accessible, etc. The module is
in use.
Deactivate: <module>_installer::deactivate() is called. Module code
is not accessible or routable. Module is *not* in use, but its tables
are still around.
Uninstall: <module>_installer::uninstall() is called. Module is
completely removed from the database.
Admin > Modules will install and activate modules, but will only
deactivate (will NOT uninstall modules).
Diffstat (limited to 'core/helpers/access.php')
-rw-r--r-- | core/helpers/access.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/helpers/access.php b/core/helpers/access.php index b9472aa0..64ce91fa 100644 --- a/core/helpers/access.php +++ b/core/helpers/access.php @@ -389,7 +389,9 @@ class access_Core { * @return ORM_Iterator */ private static function _get_all_groups() { - if (module::is_installed("user")) { + // When we build the core package, it's possible that the user module is not installed yet. + // This is ok at packaging time, so work around it. + if (module::is_active("user")) { return ORM::factory("group")->find_all(); } else { return array(); |