Git Product home page Git Product logo

advancedacl's Introduction

Build Status

Build Status

Extended Access Control List for Magento

This extension allows merchants to restrict admin users to specific store views, so it makes your Magento multitenant.

image

What we can do

We currently support restrictions of Magento Core:

  • system configuration,
  • customers
  • catalog, and
  • sales

What we can't do

There are lots of third party extensions for Magento and we can't support every single of them, so we focused on Magento Core, allowing you (or your developer) to extend it according to your needs.

Installation

We recommend to use Composer to install this into your Magento store, but you may also use modman or just copy the extension into your Magento root.

Most of our code uses event/observer pattern to gain maximum compatibility, but there are few rewrites, too (namely store switcher blocks). So make sure, your other extensions do not override the same blocks.

Clean cache after installation.

Usage

Open System โ†’ Permissions โ†’ Roles and select a role without full system access. There you will find a new tab "Advanced ACL" in there, where you will be able to restrict the role to some specific store views.

If none is selected, the role access won't get limited.

Regarding system configuration, users will be able to enter website level, if they have access to all stores of the website. Furthermore, users will be able to enter default level, if they have access to all stores of your Magento installation.

Extending

Your shop probably contains lots of modules and you might want to restrict access to these, too.

Our helper provides three methods to determine access:

  • Mage::helper('magentohackathon_advancedacl')->hasStoreViewAccess($store) to request access to a specific store (given as Mage_Core_Model_Store, store id or store code),
  • Mage::helper('magentohackathon_advancedacl')->hasFullStoreGroupAccess($storegroup) to request access to a whole storegroup (given as Mage_Core_Model_Store, store id or store code), that means, the user is allowed to access all stores of this store group,
  • Mage::helper('magentohackathon_advancedacl')->hasFullWebsiteAccess($website) to request access to a whole website (given as Mage_Core_Model_Website, website id or website code), that means, the user is allowed to access all stores of this website,
  • Mage::helper('magentohackathon_advancedacl')->hasFullAccess() to request access to the whole shop, that means, the user is allowed to access all stores of the shop

Licence

OSL - Open Software Licence 3.0

Copyright

(c) 2015

advancedacl's People

Contributors

luemic avatar pixelhed avatar quafzi avatar sprankhub avatar therouv avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.