Node Gallery Access is a module that adds access control to Node Gallery.

Node Gallery Access allows a gallery owner to specify a gallery as one of three different types:

  • Public: The gallery is accessible by anyone whom can view content.
  • Private: The gallery is accessible only by the owner.
  • Password: The gallery is accessible only after entering a shared password

The administrator can also specify roles that can view and or edit galleries that are Password or Private.

Initially, this module shipped as a contrib module included with Node Gallery, but has been since spun off into it's own module to ease management of Node Gallery core. Credit goes to Wilson Wu for the initial version of this code.

This module requires only that Node Gallery be installed.

Node Gallery Access Installation and Settings

Some of this is covered in other pages of this handbook. It was added here in case you land on this page, it will save you from searching for the information.

Installation:
Download the Node Gallery Access module and unzip or unpack it. FTP or upload the entire package (as is) to sites/all/modules in your Drupal installation.

Enable the module:
Goto: (Administer > Site building > Modules > List)
system path admin/build/modules/list

>Node Gallery
 Node Gallery Access

Permissions Settings:
Goto: (Administer > User management > Permissions)
system path admin/user/permissions
There are four selections in the node_gallery_access module subsection which can be set by role.

access password protected galleries without a password
access private galleries
edit password protected galleries without a password
edit private galleries

Access Settings in Node_Gallery Configuration:
Goto: (Administer > Site configuration > Node gallery > Access settings)
system path admin/settings/node_gallery/access

Set Node Gallery Access Types:
[  ] node_gallery_gallery
Check mark the gallery(s) to allow password protection and access settings.
Password Mode Gallery File:
Specify the image to display when viewing a gallery that needs a password. The root is the web root. The default file is sites/all/modules/node_gallery_access/images/passAlbum.gif
Password Mode Image File:
Specify the image to display when viewing a gallery image that needs a password. The root is the web root. The default file is sites/all/modules/node_gallery_access/images/passAlbum.gif
Give Node Gallery Access priority:
[ 0 ] (select box)
If you are only using this access control module, you can safely ignore this. If you are using multiple access control modules you can adjust the priority of this module. If you change this setting, you must rebuild all permissions.
Goto: (Administer > Content management > Post settings)
system path admin/content/node-settings

( Save configuration )  ( Reset to defaults)

Additional notes:
When changing settings a system notice will display to rebuild permissions, this must be done in order for the settings to take effect.

Request features and submit issues: Node Gallery Access Issues