module_lock

Component ID

1935780

Component name

module_lock

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

This module defines a new permission "administer module locks" to control which users or roles have sufficient privilege to lock or unlock a module, or to enable or disable a locked module.

This module will allow a user having the "administer module locks" permission to:

  1. lock or unlock any installed module in order to prevent if from being enabled or disabled by a user not having the "administer module locks" permission, and
  2. enable or disable a locked module without having to unlock it first.

Locked modules are displayed on the system modules page with a background highlight color for users with the "administer module locks" permission to emphasize their locked status. These modules are not displayed at all for users without this permission.

This module can usefully be used in combination with other modules like userone and permissions_lock to keep a site secure when delegating administration capability to users other than User #1.