ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Prevent user from modifying custom member field

August 05, 2012 8:55am

Subscribe [2]
  • #1 / Aug 05, 2012 8:55am

    Jason Turcotte

    102 posts

    Is there a way to prevent a user from modifying a custom member field?

    Scenario:

    Have users assigned to groups that control what entries they have access to. We’re doing this using a conditional that checks what group_id they belong to. This is working great.

    Client now wants to offer additional content based upon a program their customers buy. We accomplished this by adding a custom member field that we can perform an additional conditional evaluation against.

    However, it seems that the users can change this custom field when they edit their member profile. We do not want them able to do this.

    Suggestions?

  • #2 / Aug 06, 2012 2:59pm

    Shane Eckert

    7174 posts

    Hello Jason,

    I was able to to do this.

    Here is what I did.

    In the custom user field I set “Is this field visible in public profiles?” to no.

    Then I assigned the user to a custom group. This is one based on SuperAdmin, but it’s just not super admin.

    When I go to edit my profile as that person, I do not see the custom member field.

    Does that makes sense?

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases