Menu

Person Avatar

2025-05-21
2025-05-22
  • Guillaume Vaillant

    Hello,
    we have created a few Profiles with different s level of access.
    We restrict the Class Person to read only for everyone.

    But now the user cannot upload their profile picture and change avatar in the preference.
    Same on the page "My-Account" i'm not able to change my informations, email, phone, etc

    Can we allow the user to edit only his Person object ?

    Thank's

     
  • Vincent @ Combodo

    Hello Guillaume,
    No there is no option, to only allow a User to edit only his own person.
    Or at least no easy solution, as with an extension and a CheckToWrite on the Person, you can block any creation/modification after the user submission, but it is not user friendly.

    But it's a bit of a shame that this is not possible out of the box, as there is a technical way to overwrite the User right on a particular action using $this->AllowWrite().

    In fact it is coded this way on the UserPortal when editing your own Person, so your Users could switch to the User Portal and there edit their information, have you tried ?

     
  • Guillaume Vaillant

    Hi Vincent,

    Thank's for your answer.
    So i need to allow everybody the write permission on my Person class ? So they can edit everybody person object ?

    We are not using the userportal, only the console :/

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.