Book Image

Magento 1.8 Development Cookbook

By : Bart Delvaux, Nurul Ferdous
Book Image

Magento 1.8 Development Cookbook

By: Bart Delvaux, Nurul Ferdous

Overview of this book

<p>Magento is an open source e-commerce platform which has all the functionality to function from small to large online stores. Its architecture makes it possible to extend the functionalities with plugins where a lot of them are shared by the community. This is the reason why the platform is liked by developers and retailers.</p> <p>A practical developer guide packed with recipes that cover all the parts of Magento development. The recipes will start with the simple development exercises and get the more advanced as the book progresses. A good reference for every Magento developer!</p> <p>This book starts with the basics. The first thing is to create a test environment. Next, the architecture, tools, files and other basics are described to make you ready for the real work.</p> <p>The real work starts with the simple things like theming and catalog configuration. When you are familiar with this, we will move on to more complex features such as module and database development. When you have survived this, we will move on to the last part of making a shop ready for launch: performance optimization and testing. This book will guide you through all the development phases of Magento, covering the most common pitfalls through its recipes.</p>
Table of Contents (19 chapters)
Magento 1.8 Development Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Adding an ACL


In the previous recipes, we created a backend controller action to which you can navigate. However, when you want to configure a custom admin role, you can't restrict the access to this page for a specific role. In this recipe, we will create an ACL (Access Control List) for our backend page and configure a role with restricted access to this page.

Getting ready

Every admin user has a role. These roles contain access permissions, so you can restrict access to some user roles. In this recipe, we will add an extra permission to the roles so that we can configure the access for our previously created page.

How to do it...

The following steps show you how you can restrict the access to a backend page for specific users:

  1. The first thing we have to do is to check which ACLs are available. To know this, we can run the following command:

    wiz admin-resources
  2. Or, we can navigate to the Roles page in the backend. This is located in System | Permissions | Roles. Click on Add new role and open...