Code Monkey home page Code Monkey logo

pageeditperrole's Introduction

Page Edit Per Role

Assign edit access to roles on a per-page basis.

Overview

The user must already have page-edit permission on one of their roles in order to get edit access to assigned pages. Otherwise, they will only gain view access.

This module is fully functional as-is, but intended as a proof-of-concept for those wanting to go further with adding custom edit and/or view access.

NOTE: Original idea is from PageEditPerRole module by Ryan Cramer, http://processwire.com

How to install

  1. Copy the PageEditPerRole.module file to /site/modules/
  2. Go to Modules in the ProcessWire admin and click "Check for new modules"
  3. Click "install" for "Page Edit Per Role"

How to use

  1. Create a new role called "editor" (or whatever you want to call it) and give the role "page-edit" permission. If you already have a role in place that you want to use, that is fine too.
  2. Under "Access > Roles" locate the role you want to assign edit access to. Edit this role.
  3. For this roles's "Editable Pages" field: select one or more pages you want users with this role to be able to edit.
  4. Save the role.
  5. Under "Access > Users" locate the user you want to apply the role to. Edit this user.
  6. For this user's "Roles" field, select the new role you added - "editor".
  7. Save the user and your are done.
  8. To test, login as the user you edited to confirm it works how you expect.

pageeditperrole's People

Watchers

 avatar

Forkers

bcartier

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.