You are here

README.txt in Permissions by field 8

CONTENTS OF THIS FILE
---------------------

 * Introduction
 * Requirements
 * Similar modules
 * Installation
 * Configuration
 * Troubleshooting
 * FAQ
 * Maintainers

INTRODUCTION
------------

Permissions by field provide a new Field Type which enhance the Entity
Reference field type.

By adding fields of type Permissions by fields, you can manage access to the
node hosting these field by referencing other entity and specifiy which access
you want to grant (none or standard permission, view, update, delete) for users
which reference same entities (node, term, role or other users). You can also
grant access to the node directly per user if needed.

You can reference with the field type Permissions by field these entity types :
- user
- node
- term
- role

REQUIREMENTS
------------

This module provide a field type bases on the Entity Reference field. Entity
Reference is provided by Drupal core.


SIMILAR MODULES
-------------------

There is a lot modules which handle access permissions for node :

- Content access manage access per node type or per node and grant access to
  roles
- Permissions by terms handle permissions for nodes and users which reference
  same taxonomy term with a determined field.
- Organic Group which permit to manage group and related permissions inside
  each group

The goal of this module is to provide a simple method for implementing
similar but lighter features than thoses provided by Organic Group, currently
being ported to Drupal 8.

By using a specific field enhancing entity Reference field, you can easily
manage access to node in multiples way.

- For users members of a group node (who reference a content type named Group
  for example)
- Per user individually
- By role assigned to users
- By Term referenced by the node and users
- for users which reference others users

See documentation for more explanation about possibles configurations.

INSTALLATION
------------
Install as you would normally install a contributed Drupal module. See:
https://www.drupal.org/documentation/install/modules-themes/modules-8
for further information.


CONFIGURATION
-------------

- Add a field Permissions by field to the content type you want manage access.
- Choose the entity type this field will reference
- In the field's settings form, you can set default values and configure target
  bundles, as any Entity Reference field. You can set too the default access
  provided by this field.
  For example, we can add on the content type article a field pbf_ref_group
  which reference the content type Group.
- Add a field Permissions by field to user entity type. This field *must* have
  the same machine name (pbf_ref_node) as the field added to the content type,
   and configure it to reference too the content type Group.
- It's done. Now users who reference Group will grant access to the the content
  Article which reference same Group with the permissions you set on the field
  Permissions by Field.

Note that the checkbox Public in the grant access options, if checked, permit
you to use standard permissions of the Drupal site. You can then add a content
type to a Group but let this content be accessible to all the users who have
standard permission "access content".

Node's author will always granted all permissions.

TROUBLESHOOTING
---------------


FAQ
---


MAINTAINERS
-----------

Current maintainers:
 * flocondetoile - https://drupal.org/u/flocondetoile

File

README.txt
View source
  1. CONTENTS OF THIS FILE
  2. ---------------------
  3. * Introduction
  4. * Requirements
  5. * Similar modules
  6. * Installation
  7. * Configuration
  8. * Troubleshooting
  9. * FAQ
  10. * Maintainers
  11. INTRODUCTION
  12. ------------
  13. Permissions by field provide a new Field Type which enhance the Entity
  14. Reference field type.
  15. By adding fields of type Permissions by fields, you can manage access to the
  16. node hosting these field by referencing other entity and specifiy which access
  17. you want to grant (none or standard permission, view, update, delete) for users
  18. which reference same entities (node, term, role or other users). You can also
  19. grant access to the node directly per user if needed.
  20. You can reference with the field type Permissions by field these entity types :
  21. - user
  22. - node
  23. - term
  24. - role
  25. REQUIREMENTS
  26. ------------
  27. This module provide a field type bases on the Entity Reference field. Entity
  28. Reference is provided by Drupal core.
  29. SIMILAR MODULES
  30. -------------------
  31. There is a lot modules which handle access permissions for node :
  32. - Content access manage access per node type or per node and grant access to
  33. roles
  34. - Permissions by terms handle permissions for nodes and users which reference
  35. same taxonomy term with a determined field.
  36. - Organic Group which permit to manage group and related permissions inside
  37. each group
  38. The goal of this module is to provide a simple method for implementing
  39. similar but lighter features than thoses provided by Organic Group, currently
  40. being ported to Drupal 8.
  41. By using a specific field enhancing entity Reference field, you can easily
  42. manage access to node in multiples way.
  43. - For users members of a group node (who reference a content type named Group
  44. for example)
  45. - Per user individually
  46. - By role assigned to users
  47. - By Term referenced by the node and users
  48. - for users which reference others users
  49. See documentation for more explanation about possibles configurations.
  50. INSTALLATION
  51. ------------
  52. Install as you would normally install a contributed Drupal module. See:
  53. https://www.drupal.org/documentation/install/modules-themes/modules-8
  54. for further information.
  55. CONFIGURATION
  56. -------------
  57. - Add a field Permissions by field to the content type you want manage access.
  58. - Choose the entity type this field will reference
  59. - In the field's settings form, you can set default values and configure target
  60. bundles, as any Entity Reference field. You can set too the default access
  61. provided by this field.
  62. For example, we can add on the content type article a field pbf_ref_group
  63. which reference the content type Group.
  64. - Add a field Permissions by field to user entity type. This field *must* have
  65. the same machine name (pbf_ref_node) as the field added to the content type,
  66. and configure it to reference too the content type Group.
  67. - It's done. Now users who reference Group will grant access to the the content
  68. Article which reference same Group with the permissions you set on the field
  69. Permissions by Field.
  70. Note that the checkbox Public in the grant access options, if checked, permit
  71. you to use standard permissions of the Drupal site. You can then add a content
  72. type to a Group but let this content be accessible to all the users who have
  73. standard permission "access content".
  74. Node's author will always granted all permissions.
  75. TROUBLESHOOTING
  76. ---------------
  77. FAQ
  78. ---
  79. MAINTAINERS
  80. -----------
  81. Current maintainers:
  82. * flocondetoile - https://drupal.org/u/flocondetoile