Skip to content

bauhouse/role_model

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Role Model

Version: 1.0 Author: Giel Berkers Website: http://www.gielberkers.com E-mail: info@gielberkers.com

What does this extension do?

In short: this extension allows you to set permissions for each author with roles. It is the successor of the Author Section extension.

More detailed: The extension allows you to set the following permissions:

  • Show or hide certain sections
  • Set the rights for each section to create, edit or delete entries
  • Hide fields on certain sections
  • Let the author only see their own created entries
  • Show or hide certain entries on the publish page of sections

How does it work?

Under the System-tab you see a new item 'Roles'. This is where you can manage your roles. You can create as many roles as you want, and asign a role to multiple authors.

When you create a role you can set the permission for each section, by using the checkboxes. By clicking 'edit' underneath 'Fields' you can select which fields should be hidden for this section.

By clicking 'edit' underneath 'Entries' you can set various permissions. You can set if the author is only allowed to see the entries he/she created, and you can set a filter. The filter works quite easy actually. First you choose if the filter is to show or hide certain entries. In the textfield you can on or more ID's of entries. You can also set a range of ID's by using a hyphen.

Sidenotes

  • Fields that are set to 'hidden' will be made hidden with JavaScript. This is to ensure that all the data gets send and stored on a POST-action when an entry is saved. However, this could cause some issues with third-party field-types, although these aren't encountered yet.
  • Fields that are required cannot be set to 'hidden', since that would cause an error when trying to store the entry.
  • If you choose to filter entries (by letting an author only show his/her own entries or using the filter), pagination on the publish pages is disabled. This has to be done, because Symphony doesn't have a hook to alter the query used to retreive the entries.

About

Add Roles to Symphony CMS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%