O'Reilly logo

CMS Made Simple Development Cookbook by Samuel Goldstein

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hiding your module from Administrators who don't have permission to use it

Permissions are used for access control in CMS Made Simple, but are also very useful for task-specific interface simplification. If an administrator has no use for a given function, it's often advantageous to hide that function. It reduces the clutter of the interface, removes distractions, and prevents confusion. Similarly, from an access-control standpoint, there is no point in revealing functionality to a user who does not have the permission to use those functions.

This recipe shows you how to hide the existence of an entire module from an admin user who lacks permission to use the module.

How to do it...

  1. Using any of the methods described in Chapter 4, Getting Started ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required