• Resolved mlplus

    (@mlplus)


    Hi!

    I’m building a system with members who should be able to register as a member. The member will then be able to edit his profile (user, member, people). He should also be able to create and edit his own events and locations. I tried setting up permissions and user roles to manage this, but failed. In admin the user can see and edit all events or none, locations and members, not only his own. What do I do wrong? Is it possible to do?

Viewing 15 replies - 1 through 15 (of 27 total)
  • Plugin Author Franky

    (@liedekef)

    Make sure the Access settings are specific enough for Author Event and Author Location. If not yet done, create own capabilities via “User Role Editor”, assign those to the roles (e.g. to Subscriber), and use those capabilities in the Access settings.

    Thread Starter mlplus

    (@mlplus)

    Ok, got it working for places and events. It shows all but I can only edit my own as a member. Is it possible to only show my own places and events in list?
    But to edit my member information (people page) I can not do these settings. I always ends up being able to edit all people.

    • This reply was modified 5 years, 5 months ago by mlplus.
    Plugin Author Franky

    (@liedekef)

    Yes indeed, for members I started with the logic that people that become a member shouldn’t be able to edit that info. But I assume you’re not talking about EME memberships, just EME people here …
    I’ll see what is possible concerning editing own info, but of course that’s only possible if the EME person is linked to a wordpress person.

    Thread Starter mlplus

    (@mlplus)

    Yes correct, a linked EME person (people) to a wordpress user. So the wordpress user only can edit his own EME person (people).

    Plugin Author Franky

    (@liedekef)

    The next version will allow this. From the changelog:

    * Added access controls for people and members (list/author/edit).
    The list access control is new and for those already limiting access specifically for people or members, this value needs to be checked.

    Thread Starter mlplus

    (@mlplus)

    Thanks, but something happened with locations, because “Access denied” also as an admin.

    Plugin Author Franky

    (@liedekef)

    Thread Starter mlplus

    (@mlplus)

    Hi Franky!

    I set the rules for user permissions the same for events and locations. The event list works perfectly, show only the user own events and the user can edit them. For locations it I have to set higher permission to show the list of locations and then it shows all and the user can edit all. Would be nice if the locations could work the same as events.

    Plugin Author Franky

    (@liedekef)

    Did you already update to the latest version? It should be ok, but I’ll test again later on (my tests were ok on first sight).

    Thread Starter mlplus

    (@mlplus)

    Yes, using latest version

    Thread Starter mlplus

    (@mlplus)

    Franky! I think I found the problem. the location author was set to 0 instead of the authors ID. I don’t now how this happened. Is this a bug in your code? By changing the author ID in the database to correct number it works.

    • This reply was modified 5 years, 4 months ago by mlplus.
    Plugin Author Franky

    (@liedekef)

    That might be a bug (or not ?? )
    How was that location created? I’ll check that later on too (I’ll reopen this thread)

    Thread Starter mlplus

    (@mlplus)

    It would be great if the Author would show if you are an admin so the admin can set or change the author for events and location.

    Thread Starter mlplus

    (@mlplus)

    One more thing. Now when author is set correct, back-end is working correct, front-end #ESC_EDITEVENTURL is working fine but not #ESC_EDITLOCATIONURL

    • This reply was modified 5 years, 4 months ago by mlplus.
    Plugin Author Franky

    (@liedekef)

    Indeed, for locations I need to clean up some redundant use of nonces. For a quick fix, remove in eme_locations.php line 48:
    check_admin_referer('eme_admin','eme_admin_nonce');

Viewing 15 replies - 1 through 15 (of 27 total)
  • The topic ‘User Roles and permissions’ is closed to new replies.