215 Posts
cubist
11 years ago
7
Topic

Hey fellow Sebloders!

Everyday I am impressed with the power of Seblod. I am having a problem with users editing their own profile.

I created a content type based on users, so users register and also have extra fields to answer.

I created a test user with the form. Data is captured fine.  The user is activated and approved. I can log in, etc.

The permissions in the content type form itself are: Registered users can Edit Own (Allowed). Edit (Not Allowed)

I created a menu item (Edit User Profile) and oddly it does NOT work. The link reroutes to a "You are not allowed to access this resource" msg.

IF I set permissions in the content type for Registered users can Edit (Allowed) <-- meaning edit all -- of course not what I want as then everyone can edit anyone's profile with the right link...  IT WORKS. So it am scratching my head ... if something else is missing from my set up??

Any help is greatly appreciated!

Thx!






Get a Book for SEBLOD
11 years ago
2
Level 1

Hi,

I got the same problem. It looks the author_id is not correctly retrieved from the '#__cck_core' table or is not correctly passed to the function that checks permission.

I'm scratching my head too digging the cck code to find where the problem is...

Olivier

11 years ago
1
Level 2

Hi,

Well, I think i got it...

In fact, reading some forum posts about the user bridge activation, it seems it's mandatory to have it enabled to let the user edit his profile (Seblod profile) on frontend.

Enabling the bridge creates a Joomla! content linked to the user (and the user content type). The Joomla! content 'created_by' value is correctly set with the user id (and not default author id) so permissions are correctly set by default.

To enable the user bridge, go to the 'CCK Storage Location - Joomla! User' plugin configuration, 'Basic Options' tab and set the 'Enable Bridge' option to 'Yes'.

Olivier

548 Posts
joomleb
10 years ago
0
Level 3
Hi to all,

@Olivier, 
Without Bridge I have some more issues with:
1 - SEBLOD Options Integration Joomla User  Edit User Profile
2 - SEF URL Rewriting of Registration and Edit User Profile pages

@cubist
always without bridge I tested also with:
  • SEBLOD > Permissions> Registerd > Edit: Inherit (left as default)
  • SEBLOD > Permissions> Registerd > Edit Own: Allowed
and all seem to work well. Please, Can you confirm it ?
548 Posts
joomleb
10 years ago
3
Level 1
Hi,
maybe, Is this the solution ?
4229 Posts
Kadministrator
10 years ago
2
Level 2
Hi @joomleb ,

 is there a problem with a bridge or why don't you want to activate it?
548 Posts
joomleb
10 years ago
0
Level 3
Hi Klas, 

No, any problem.
While I'm learning and waiting to understand something more on Bridge, Seblod have to work well also without Bridge... nothing else :)
116 Posts
nycxav
9 years ago
0
Level 3

Hi, 

I do not wish to activate the bridge because of performance issues. I have a site with 40K users and over 100K articles already. Activating the bridge would create  40K additional articles and overload the system. 

So without the bridge I noticed that some users cannot edit their own profile (access right issue) while others are able to access and edit their profiles from the front end. 

I have checked a lot of tables, joomla and seblod  but no matter where I check I cannot seem to find a significant difference between the two types of users. 

Where is the info on access rights on user profiles stored (which table/column)? 

Since you seem to recommend activating the bridge (which again I cannot do for performance issues) I'm wondering if there is a known bug when the bridge is not activated?

I use the latest Joomla 3.3.6 and latest Seblod 3.5.0

Thanks in advance.

Xav.

Get a VIP membership