4 improved grammar, typos and capitaization
source | link

How do Ito eliminate access to page based on the user ID?

I want to control the access of a page basingbased on the user ID and the value of some other fields.

For example, Ifif I am logged in as user #5, I have access to user/5user/5 but I don't have user to the page user/6user/6 and administrator users have access to both pages.
In

In my case, imageimagine I have a custom user page and I want to give access only to the owner and to the user selected in a custom field.

I don't think I can achieve that using permissions and in the future I might have more restrictions based on the value of other fields. So ideally, I would like to have a function where I will get the uid and the value of the fields, I will do my checks and I will restrict the access or not.

By the way my pages are panel pages not nodes.

Any idea/help/suggestion?

How do I eliminate access to page based on the user ID?

I want to control the access of a page basing on the user ID and the value of some other fields.

For example, If I am logged in as user #5, I have access to user/5 but I don't have user to the page user/6 and administrator users have access to both pages.
In my case, image I have a custom user page and I want to give access only to the owner and to the user selected in a custom field.

I don't think I can achieve that using permissions and in the future I might have more restrictions based on the value of other fields. So ideally, I would like to have a function where I will get the uid and the value of the fields, I will do my checks and I will restrict the access or not.

By the way my pages are panel pages not nodes.

Any idea/help/suggestion?

How to eliminate access to page based on the user ID?

I want to control the access of a page based on the user ID and the value of some other fields.

For example, if I am logged in as user #5, I have access to user/5 but I don't have user to the page user/6 and administrator users have access to both pages.

In my case, imagine I have a custom user page and I want to give access only to the owner and to the user selected in a custom field.

I don't think I can achieve that using permissions and in the future I might have more restrictions based on the value of other fields. So ideally, I would like to have a function where I will get the uid and the value of the fields, I will do my checks and I will restrict the access or not.

By the way my pages are panel pages not nodes.

Any idea/help/suggestion?

3 improved grammar
source | link

How todo I eliminate access to page based on the user idID?

I want to control the access of a page basedbasing on the user idID and the value of some other fields.

AnFor example is the user page., If I am logged in as user 5#5, I have access to user/5 but I don't have user to the page user/6 and admin hasadministrator users have access to both pages.

In
In my case, image that I have a custom user page and I want to give access only to the owner and to the user selected in a custom field.

I don't think I can achieve that using permissions and in the future I might have more restrictions based on the value of other fields. So ideally, I would like to have a function where I will get the uid and the value of the fields, I will do my checks and I will restrict the access or not.

By the way my pages are panel pages not nodes.

Any idea/help/suggestion?

How to eliminate access to page based on user id?

I want to control the access of a page based on the user id and the value of some other fields.

An example is the user page. If I am logged in as user 5 I have access to user/5 but I don't have user to the page user/6 and admin has access to both pages.

In my case, image that I have a custom user page and I want to give access only to the owner and to the user selected in a custom field.

I don't think I can achieve that using permissions and in the future I might have more restrictions based on the value of other fields. So ideally, I would like to have a function where I will get the uid and the value of the fields, I will do my checks and I will restrict the access or not.

By the way my pages are panel pages not nodes.

Any idea/help/suggestion?

How do I eliminate access to page based on the user ID?

I want to control the access of a page basing on the user ID and the value of some other fields.

For example, If I am logged in as user #5, I have access to user/5 but I don't have user to the page user/6 and administrator users have access to both pages.
In my case, image I have a custom user page and I want to give access only to the owner and to the user selected in a custom field.

I don't think I can achieve that using permissions and in the future I might have more restrictions based on the value of other fields. So ideally, I would like to have a function where I will get the uid and the value of the fields, I will do my checks and I will restrict the access or not.

By the way my pages are panel pages not nodes.

Any idea/help/suggestion?

2 remove noise and improve title
source | link

Eliminate How to eliminate access to page based on user id?

Thanks to some of you I managed to make the route working! But I'm not sure if this is what I really need.

I want to control the access of a page based on the user id and the value of some other fields.

An example is the user page. If I am logged in as user 5 I have access to user/5 but I don't have user to the page user/6 and admin has access to both pages.

In my case, image that I have a custom user page and I want to give access only to the owner and to the user selected in a custom field.

I don't think I can achieve that using permissions and in the future I might have more restrictions based on the value of other fields. So ideally, I would like to have a function where I will get the uid and the value of the fields, I will do my checks and I will restrict the access or not.

By the way my pages are panel pages not nodes.

Any idea/help/suggestion would be valuable!

Thank you in advance.?

Eliminate access to page based on user id

Thanks to some of you I managed to make the route working! But I'm not sure if this is what I really need.

I want to control the access of a page based on the user id and the value of some other fields.

An example is the user page. If I am logged in as user 5 I have access to user/5 but I don't have user to the page user/6 and admin has access to both pages.

In my case, image that I have a custom user page and I want to give access only to the owner and to the user selected in a custom field.

I don't think I can achieve that using permissions and in the future I might have more restrictions based on the value of other fields. So ideally, I would like to have a function where I will get the uid and the value of the fields, I will do my checks and I will restrict the access or not.

By the way my pages are panel pages not nodes.

Any idea/help/suggestion would be valuable!

Thank you in advance.

How to eliminate access to page based on user id?

I want to control the access of a page based on the user id and the value of some other fields.

An example is the user page. If I am logged in as user 5 I have access to user/5 but I don't have user to the page user/6 and admin has access to both pages.

In my case, image that I have a custom user page and I want to give access only to the owner and to the user selected in a custom field.

I don't think I can achieve that using permissions and in the future I might have more restrictions based on the value of other fields. So ideally, I would like to have a function where I will get the uid and the value of the fields, I will do my checks and I will restrict the access or not.

By the way my pages are panel pages not nodes.

Any idea/help/suggestion?

1
source | link