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 ?
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | screen-nr-secret-info-view.png | 95.65 KB | rudiedirkx |
Comments
Comment #1
rudiedirkx commentedThat'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:
Comment #2
nasia123 commentedYou are the best!
it works now
Thank you :-)
Comment #3
rudiedirkx commentednp