27 Posts
Diegohag
7 years ago
7
Topic

Hi, i make custom profiles with bridge, every user have his own profile in 1 article. Is there a way to block to the ser see others profiles? i have more than 200 users make a access level for each can be not an option 

I need that every user see his own but not other with a forbiden message. Thanks

Get a Book for SEBLOD
4229 Posts
Kadministrator
7 years ago
6
Level 1

You hit a limitation of weird Joomla view permissions. What you can do is to apply permission restriction from ACL pack on each field. Unfortunately this won't give you forbidden message, but user will only see a blank page as all fields will be restricted to him.

Alternative way, if you know little php, would be to do your check in beforeRender event from code pack and redirect to some other page if user it not author of this field.

27 Posts
Diegohag
7 years ago
1
Level 2

Many thanks. I will see what i can do. when logued or use profile link but always use homepage itemid. What can be?

To be more 

4229 Posts
Kadministrator
7 years ago
0
Level 3

Answered in the separate topic you opened.

27 Posts
Diegohag
7 years ago
3
Level 2

Hi, i buy ACL pack but don´t figure how i restrict the field only for user. Witch option is? thanks. 

4229 Posts
Kadministrator
7 years ago
2
Level 3

You need to give group that users are in edit.own permission. Then use Permisison plugin from acl pack and set it to use edit.own permission.

27 Posts
Diegohag
7 years ago
1
Level 4

I´m back with this. I´m using user plugin to show conditional content. any way to prevent users see other profiles? A blank page or a non access. Thanks.

4229 Posts
Kadministrator
7 years ago
0
Level 5

Unfortunately there is no "view.own" in Joomla as it treats view differently. Only way I can think of is to use beforeRender field and check if current user matches author and if not, redirect to somewhere else.

Get a Book for SEBLOD