• Allow users (Authors) to edit profile

    By Janko Stefancic 1 decade ago

    Don't know if this is the right place but from testing I believe it is useful
    if we enable users with AUTHOR access to edit their own profiles:

    1) Enable the profile button:

    return !profileDoc.isEditable() && ((userBean.accessLevel > lotus.domino.ACL.LEVEL_AUTHOR) || @IsMember(userBean.commonName,profileDoc.getItemValue("Authors").toArray())) && userBean.canCreateDocs;

     

    2) Change the loaded property of the SAVE button on the editProfile:

    (userBean.accessLevel > lotus.domino.ACL.LEVEL_AUTHOR || @IsMember(userBean.commonName,profileDoc.getItemValue("Authors").toArray())) && userBean.canCreateDocs

     

    3) It seems computewithform fails to compute "Authors" field... so some extra SSJS code is needed onSave.

     

     

     

    • Form "Team Member Profile" - Field "Authors" just needs a change

      By Janko Stefancic 1 decade ago

      Disregard the 3) thing and just tick "Allow multiple values" for field "Authors" in form "Team Member Profile"
      That's it!