My scenario is the following.
I have a node that has NR enabled.
User comes and registers to the node type.
Admin edits the registration, and checks the "attended" field for the user.

I would like the user to have access on some additional information on the node that he has registered for, if he has the field attended = true .

I thought that views is the more simple way to do this.
I have created a node registration view for this purpose, that uses
contextual filters :
node registration nid,
node registration user id.

Fields :
Content:Body
the field "additional information" , I want to make available to the user (attended)

Filters:
Node registration:attended=yes

View access permission=>Role:authenticated user

My node registration view works only if I am logged in as admin (I tested it using the contextual filters), but if I use the user's account to access this view, the user does not get to see the additional information...

Is the node registration view and the node registration fields provided , available only for the user that has the "administer registration" permission ?

CommentFileSizeAuthor
#1 screen-nr-secret-info-view.png95.65 KBrudiedirkx

Comments

rudiedirkx’s picture

StatusFileSize
new95.65 KB

That's a very clever trick. I just tried it and it works for me. You've probably not set up the View correctly.

This is my View:

view config

nasia123’s picture

You are the best!
it works now
Thank you :-)

rudiedirkx’s picture

Status: Active » Fixed

np

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.