You are here

README.txt in Field Permissions 6

Same filename and directory in other branches
  1. 7 README.txt
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Field Permissions module
;;
;; Original author: markus_petrux (http://drupal.org/user/39593)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

CONTENTS OF THIS FILE
=====================
* OVERVIEW
* USAGE
* REQUIREMENTS
* INSTALLATION
* UPGRADING FROM CCK CONTENT PERMISSIONS


OVERVIEW
========

The Field Permissions module is a drop-in replacement for the Content
Permissions module shipped with CCK.

The key differences are:

  * It allows site administrators to set field-level permissions to edit or
    view CCK fields in any node, and optionally (new feature compared to
    Content Permissions), edit or view permissions for nodes owned by the
    current user.

  * Permissions for each field are not created by default. Instead,
    administrators can enable these permissions explicitly for the fields
    where this feature is needed.


USAGE
=====

Once Field Permissions module is installed, you need to edit the field settings
form to enable permissions for each where you need this feature. You can enable
any of the following permission types:

  * Create FIELD (edit on node creation).
  * Edit any FIELD, regardless of its node author.
  * Edit own FIELD on node created by the user.
  * View any FIELD, regardless of its node author.
  * View own FIELD on node created by the user.

Use these options to enable role based permissions for this field. When
permissions are enabled, access to this field is denied by default and explicit
permissions should be granted to the proper user roles from the permissions
administration page. On the other hand, when these options are disabled, field
permissions are inherited from node view and/or edit permissions. In example,
users allowed to view a particular node will also be able to view this field,
and so on.


REQUIREMENTS
============

- CCK (6.x-2.5 or higher).
  http://drupal.org/project/cck

  Field permissions requires that hook_field_access() is invoked with $account
  as 3rd argument (added to CCK in 6.x-2.2, see [#336174] [1]) and $node as 4th
  argument (added to CCK in 6.x-2.5, see [#514452] [2]).

  [1] http://drupal.org/node/336174
  [2] http://drupal.org/node/514452


INSTALLATION
============

- Be sure to install all dependent modules.

- Copy all contents of this package to your modules directory preserving
  subdirectory structure.

- Go to Administer -> Site building -> Modules to install module.

- Review the settings of your fields. You will find a new option labelled
  "Field permissions" that allows you to enable permissions per field. It
  is disabled by default.


UPGRADING FROM CCK CONTENT PERMISSIONS
======================================

The Field Permissions module is fully compatible with the permissions already
defined with Content Permissions module shipped with CCK.

  1. Make backups to ensure you can easily fallback in case of any trouble.
  2. Install Field Permissions module while Content Permissions module is
     still enabled.
  3. Disable and then Uninstall Content Permissions module.
  4. You can now check your existing permissions are still there, in the
     Permissions administration screen.
  5. Now, you may wish to disable permissions for fields where this feature
     is not really needed.

File

README.txt
View source
  1. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2. ;; Field Permissions module
  3. ;;
  4. ;; Original author: markus_petrux (http://drupal.org/user/39593)
  5. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  6. CONTENTS OF THIS FILE
  7. =====================
  8. * OVERVIEW
  9. * USAGE
  10. * REQUIREMENTS
  11. * INSTALLATION
  12. * UPGRADING FROM CCK CONTENT PERMISSIONS
  13. OVERVIEW
  14. ========
  15. The Field Permissions module is a drop-in replacement for the Content
  16. Permissions module shipped with CCK.
  17. The key differences are:
  18. * It allows site administrators to set field-level permissions to edit or
  19. view CCK fields in any node, and optionally (new feature compared to
  20. Content Permissions), edit or view permissions for nodes owned by the
  21. current user.
  22. * Permissions for each field are not created by default. Instead,
  23. administrators can enable these permissions explicitly for the fields
  24. where this feature is needed.
  25. USAGE
  26. =====
  27. Once Field Permissions module is installed, you need to edit the field settings
  28. form to enable permissions for each where you need this feature. You can enable
  29. any of the following permission types:
  30. * Create FIELD (edit on node creation).
  31. * Edit any FIELD, regardless of its node author.
  32. * Edit own FIELD on node created by the user.
  33. * View any FIELD, regardless of its node author.
  34. * View own FIELD on node created by the user.
  35. Use these options to enable role based permissions for this field. When
  36. permissions are enabled, access to this field is denied by default and explicit
  37. permissions should be granted to the proper user roles from the permissions
  38. administration page. On the other hand, when these options are disabled, field
  39. permissions are inherited from node view and/or edit permissions. In example,
  40. users allowed to view a particular node will also be able to view this field,
  41. and so on.
  42. REQUIREMENTS
  43. ============
  44. - CCK (6.x-2.5 or higher).
  45. http://drupal.org/project/cck
  46. Field permissions requires that hook_field_access() is invoked with $account
  47. as 3rd argument (added to CCK in 6.x-2.2, see [#336174] [1]) and $node as 4th
  48. argument (added to CCK in 6.x-2.5, see [#514452] [2]).
  49. [1] http://drupal.org/node/336174
  50. [2] http://drupal.org/node/514452
  51. INSTALLATION
  52. ============
  53. - Be sure to install all dependent modules.
  54. - Copy all contents of this package to your modules directory preserving
  55. subdirectory structure.
  56. - Go to Administer -> Site building -> Modules to install module.
  57. - Review the settings of your fields. You will find a new option labelled
  58. "Field permissions" that allows you to enable permissions per field. It
  59. is disabled by default.
  60. UPGRADING FROM CCK CONTENT PERMISSIONS
  61. ======================================
  62. The Field Permissions module is fully compatible with the permissions already
  63. defined with Content Permissions module shipped with CCK.
  64. 1. Make backups to ensure you can easily fallback in case of any trouble.
  65. 2. Install Field Permissions module while Content Permissions module is
  66. still enabled.
  67. 3. Disable and then Uninstall Content Permissions module.
  68. 4. You can now check your existing permissions are still there, in the
  69. Permissions administration screen.
  70. 5. Now, you may wish to disable permissions for fields where this feature
  71. is not really needed.