The Stack Overflow podcast is back! Listen to an interview with our new CEO.
2 added 108 characters in body
source | link

To create a view that is limited to content created by the current user (logged in) and Admin:

  • create the view as you normally would

  • Under Advanced, Contextual LinksRelationship, addcreate a contextual linkrelationship to Content:Author

  • Create a Filter, User:Current, Logged in Yes, using the author:uid relationship

enter image description here

  • Create a filter, Author ID = admin

  • When the filter value is NOT in the URL: Provide default value, User ID from logged in User

    Create a Filter Group (click on arrow next to Add on Filter Criteria)

  • 'Create a new filter group' and make it look something like this:

enter image description hereenter image description here

This will limit the view to content only created by the currently logged in user and/or Admin, but does not limit access to the nodes themselves, for that you will need a module such as Node Access:

Nodeaccess is a Drupal access control module which provides view, edit and delete access to nodes. Users with the 'grant node permissions' permission will have a grant tab on node pages which allows them to grant access to that node by user or role. Administrators can set default access controls per content type, and also define which roles are available to grant permissions to on the node grants tab.

To create a view that is limited to content created by the current user (logged in):

  • create the view as you normally would

  • Under Advanced, Contextual Links, add a contextual link to the author:uid

enter image description here

  • When the filter value is NOT in the URL: Provide default value, User ID from logged in User

enter image description here

This will limit the view to content only created by the currently logged in user, but does not limit access to the nodes themselves, for that you will need a module such as Node Access:

Nodeaccess is a Drupal access control module which provides view, edit and delete access to nodes. Users with the 'grant node permissions' permission will have a grant tab on node pages which allows them to grant access to that node by user or role. Administrators can set default access controls per content type, and also define which roles are available to grant permissions to on the node grants tab.

To create a view that is limited to content created by the current user (logged in) and Admin:

  • create the view as you normally would

  • Under Advanced, Relationship, create a relationship to Content:Author

  • Create a Filter, User:Current, Logged in Yes, using the author relationship

  • Create a filter, Author ID = admin

  • Create a Filter Group (click on arrow next to Add on Filter Criteria)

  • 'Create a new filter group' and make it look something like this:

enter image description here

This will limit the view to content only created by the currently logged in user and/or Admin, but does not limit access to the nodes themselves, for that you will need a module such as Node Access:

Nodeaccess is a Drupal access control module which provides view, edit and delete access to nodes. Users with the 'grant node permissions' permission will have a grant tab on node pages which allows them to grant access to that node by user or role. Administrators can set default access controls per content type, and also define which roles are available to grant permissions to on the node grants tab.

1
source | link

To create a view that is limited to content created by the current user (logged in):

  • create the view as you normally would

  • Under Advanced, Contextual Links, add a contextual link to the author:uid

enter image description here

  • When the filter value is NOT in the URL: Provide default value, User ID from logged in User

enter image description here

This will limit the view to content only created by the currently logged in user, but does not limit access to the nodes themselves, for that you will need a module such as Node Access:

Nodeaccess is a Drupal access control module which provides view, edit and delete access to nodes. Users with the 'grant node permissions' permission will have a grant tab on node pages which allows them to grant access to that node by user or role. Administrators can set default access controls per content type, and also define which roles are available to grant permissions to on the node grants tab.