Views not appearing for non admin user - drupal

I have setup a view which outputs nodes, including the name of the person who created it.
If a non-admin person browses to the page where that view is displayed, they dont see the name field, I recall somewhere about this being an administrative permission ??

Is the name of the creator a CCK field? Make sure the permission to view this field is set for anonymous users (in the /admin/user/permissions page).

Related

Drupal 6: Want to remove access restrictions on a View

I have a View with a Page display that only allows the returned data to be linked if the user is authenticated/logged in.
I simply want to remove that restriction. There is another view that looks the same except it's for Public and shows all the same data but not linked. (the data are pdf files).
On the authenticated display, next to Access in the Basic Settings it has: authenticated user. If I click that user role (not the gear for options), then I'm allowed a list of:
Domain
None
Permission
Role
…for access restrictions. I click "None", save. But, the links are not there as an anon visitor. Same if I try by changing the user to Anonymous User. Note: In the permissions, anon has the right to see webfm attachments.
I noticed the url is like: documents-public or documents-auth so I made it just documents. No luck.
I visited the actual custom-page-type which puts the View in a content pane. I re-ordered the variants, removed all Selection Rules and that didn't do anything either.
Flushed all caches.
Somewhere, the view is still only showing a view based on whether a user is authenticated or not even though I've removed the access (it says "unrestricted" next to access) on both displays and removed all selection rules on the actual page.
I'm stuck where else to look.
The setting you're changing (Access restrictions) is for the entire page - the page URL will return a 403 error if the criteria are met.
As to where the logic is to display/not display the link, four things come to mind:
If the "view mode" is set to node or teaser, it could be in the node template file.
The logic might be in a specific view template (click on the theme information link and see if any of the templates have been overridden).
The developer might have user Views Custom Fields to put the logic directly in the fields.
The linked content is actually restricted.
I'm sure there are other possibilities too. The main point here though is that if access was restricted for anon users, they would see a 403 error, not just some missing fields.

drupal give permission to access a content to authenticated user only

I am using a drupal 6. I need to restrict access to certain pages to my site for only the authenticated users. All these pages are having their own primary navigation parent menu, mouse hover on which it shows the sub menu to these pages. Once user clicks on it, it should show the page content if user is authenticated otherwise should show "Access Denied".
I tried to use Content Access module, though it restricts the access to the pages but it does not even show the menu link to anonymous user in menu list.
Is it possible to show menu in menu list, but on clicking on link it should show the access denied message of user is anonymous?
There are 2 ways you can go about this, the field permissions module if you just want to limit to specific fields or you can make a PHP block, call global $user within it, and if the user's role doesn't match on the node type for who you need to be, then call drupal_access_denied()
http://api.drupal.org/api/drupal/includes!common.inc/function/drupal_access_denied/6
The block method is going to be much more efficient because you won't have to configure a billion checkboxes if you have a lot of fields and because if you make the block within a custom module, it will be exportable easily to other Drupal sites.

How to control when to show the delete's link in the view according to user 's identity

I created a view with many fields of one node type, one of the fields is the delete link, but I just want to show the delete link only to the author of this node, those who are not author should not see the delete link
How can I do it?
If you have permissions (admin/user/permissions) set up so that only the author of the node can delete it, Views will automatically recognize that and hide the delete link for users without permission to delete the node.
In short: Make sure your permissions are set correctly at admin/user/permissions

How I can add "files available for download" to Drupal user profile page

first time here. I have searched all day for my particular issue with no luck.
I have users that have specific roles auto generated (they purchase a game). I want to display files available to their particular role on their user profile page. I just want to know how I can add a generic view or associate a panel with user profile pages. I want this to display for every user, not on a per user basis. Basically it'll act like, say, direct2drive, you log in and go to your user profile basically and see what games you bought. Seems simple but I am having a heck of a time figuring out how to do this.
I am pretty used to using views but I just don't get how to edit the user profiles like I want to.
Thanks!
The simplest way is to install views_attach, and create a view with a Profile display. This displays the View on the user profile pages, rather than on its own page or in a block, and will pass the user's uid to the View as an argument.
Alternatively, if you're already using comfortable using panels, you can go to admin/build/panels and enable the Users panel. This replaces the user profile page with a panel, which you can add views, nodes and blocks to as normal.

Drupal: Possible to assign view permissions to all cck fields for a node type?

I've created a custom content type: product
This product has an image (cck file field) and a few other cck fields that make up it's content definition.
By default, when an anonymous user looks at a published product, they do not have permission to view the image or any other cck field.
Personally, I don't really want to have to always go in and alter the permissions for each individual field that belongs to the node.
Is it possible to set the permissions at the node level and have it cascade down to the individual fields? I've tried a few different modules that set node level access.. but I believe that is all they do. They don't actually drill down into the fields.
Thanks
You should disable the "content permissions" module. You probably have it enabled right now. By default all fields will be visible if the node is accessible to the end user (after you disable the module).

Resources