#1162 closed defect (worksforme)
RegistrationModule can't be disabled
Reported by: | Owned by: | Matt Good | |
---|---|---|---|
Priority: | normal | Component: | AccountManagerPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.10 |
Description
It appears that IRegistrationModule doesn't check whether it is disabled or not, so it will always display the register link/provide the registration form. Patch attached to fix the issue
Attachments (1)
Change History (3)
Changed 18 years ago by
Attachment: | register_disable.diff added |
---|
comment:1 Changed 18 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:2 Changed 18 years ago by
The module name was a typo, sorry about that. I checked several times before checking the source. I wanted to have admin interface user management, while disallowing registration, so I disabled the module (acct_mgr.web_ui.registrationmodule = disabled in trac.ini), and the registration link still appeared in the main interface, so I'm not quite sure where this is coming from (other modules can be disabled, however, so it's not a trac issue), the easiest way was to add a check in _enable_check; my problem is solved, anyway :)
Well, it's just
RegistrationModule
, notIRegistrationModule
. However, it's unnecessary for a component to test if it's enabled since it will never be called if it's been disabled. I've just tested disabling it here and it works as expected. Check your trac.ini again, or use the WebAdmin panel to disable theRegistrationModule
. If you need more help check on the trac:MailingList.