1. NOTICE: If you are using Fabrik and update to Joomla 3.10, you will need to update to Fabrik 3.10. And, if you are using Fabrik, do not upgrade to Joomla 4, we do not have a supported version ready for release. More information on a release date coming soon. Also, please note that Fabrik 3.10 will not install on any Joomla sites less than 3.8.
    Dismiss Notice

Validation on access by user filed

Discussion in 'Community' started by k0d1, Apr 16, 2019.

  1. k0d1

    k0d1 New Member

    Level: Community
    I make in the backend a form with a databasejoin filed width "Form (edit)" access using "Special" and "user filed" access using "user id" to allow edit options only for owner of the record. I set also not empty validation.
    On the frontend if I submit the form with the empy filed so I see the validation error but the filed in the readonly (not editable) state.
    When I change "Form (edit)" access to "Registered " the validation stated form become appropriate and the filed become editable.
    It seams that the form in validation state don't recognize correctly the access rights based on user fileld.
    How to fix it?
     
  2. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Community
    Hmmm, sounds like a bug in the re-display of the form after the validation failure. I'll set up a test case and fix it in the next day or so. I just got back from a long road trip, so it'll take me a few days to catch up. Bump this thread if you haven't heard from me within 2 days.

    -- hugh
     
    k0d1 likes this.
  3. k0d1

    k0d1 New Member

    Level: Community
    Dear Hugh!
    I bumped this thread because I haven't heard from me within 2 days. I miss your advice very much!
     
  4. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Community
    I'll try and find some time today to look.

    -- hugh
     
  5. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Community
    I don't seem to be able to replicate this one. I have a join and a user element, I set the join with edit ACL "Super Users" and "user field" (as per your description) and a "not empty". I can set the join to no selection, submit, and it still allows me to edit after the validation fail.

    Are there any other ACLs in play? Like, maybe on the user element? Any other form plugins?

    If the form is in any way complex, can you try creating a really simple test form, with just id, join and user, see if you can replicate the same results with that?

    -- hugh
     

Share This Page