Admin-only mode module

Events happening in the community are now at Drupal community events on www.drupal.org.
claar's picture

Similar concept as the readonlymode module, but this module:

1) logs out any logged-in users
2) displays a customizable message on the login form stating that only the admin user can login
3) allows you to put the site in this mode via drush

This module has no effect on anonymous user's browsing of the website.

Thoughts appreciated! The module is already coded and in-use on my drupal sites.

Comments

Maintenance mode?

rfay's picture

How is this different from the core maintenance mode? Sounds exactly the same.

Not maintenance mode

claar's picture

Core maintenance mode takes the site offline, so that anonymous users who want to browse the site cannot do so. This module does not affect non-logged-in users when enabled, it only prevents users from logging in to Drupal.

This module is most useful for sites that do not allow anonymous users to modify Drupal in any way, such as the numerous static-content sites that I host. This module keeps out the site editors while letting anonymous browsers carry on as usual.

It's not acceptable to place our mission-critical sites into a maintenance mode for any period of time, but blocking logins for a period is acceptable.

Slight variant of a feature of Boost

mikeytown2's picture

Sounds interesting; if your using boost you can still access the cached pages while the site is in maintenance mode (its a setting). Something like what your describing could be useful.

Sounds good …

no2e's picture

Sounds good …
but maybe it could be added to the mentioned readonlymode?

hello maintenance helper

greggles's picture

I built Maintenance Helper for exactly that scenario.

I think it has most of the features you describe and I'd definitely accept a patch for the last one.

If you agree it looks good for your purposes we could discuss making you a co-maintainer.

Looks great

claar's picture

Hey greggles,

Your project sounds like the perfect home for the features I'm talking about. Suggested feature patches will be forth-coming -- co-maintainer-ship sounds interesting and I'm open for discussion on that.

Github

claar's picture

I've decided not to submit this as a new drupal module for now to avoid duplication of the Maintenance Helper module. However, until the Maintenance Helper module has the feature-set I spoke of, I will be using the admin-only module.

In case someone else would like to use this module, I have made it available at http://github.com/claar/admin_only_mode

Contributed Module Ideas

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: