Forums

Chronoforms 8.0.9 - ACL (form + fields)

rbock 03 Aug, 2023
for my next form i need ACL (form + fields)

on my first domain is only ACL for form active. on other domain ist ACL missing, CF is 8.0.9.

i need redirect fields based on values from database read action.
Max_admin 03 Aug, 2023
You mean that you need ACL for fields ? does the ACL for form work fine for you ?

i need redirect fields based on values from database read action.


what does this have to do with ACL ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
rbock 03 Aug, 2023
1. ACL is not available, despite version 8.0.9 and validation. www domain - yes on subdomain (seminare.nna-foej.de) - not !

2. the form is public
Data Read action only for logged in users.
Data Read Action return the field from joomla table, group1 group2 group3...

the redirect action redirect based on group to form1 form2 form3...
Max_admin 06 Aug, 2023
Added ACL for Views and Actions in v8.0.10
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
rbock 06 Aug, 2023
Nice, Max...

But it doesn't work. I have ACL public for the form and ALC "registered users" for the DB Read Action.
Max_admin 07 Aug, 2023
And ? neither the form ACL nor the Read Data is working ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Max_admin 07 Aug, 2023
you know that "public" will run ALL the time ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
rbock 07 Aug, 2023
Yes...

Form ACL = Public

Field1 - 5 ACL = Public
Field6 - 9 ACL = Registered

Only Field 6,7,8,9 for User
Max_admin 07 Aug, 2023
so what is not working ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
rbock 07 Aug, 2023
ACL for registered users. DB Read is also done Public according to debug.
Max_admin 07 Aug, 2023
it's not running, when an action runs once, it sets the result in the "Vars" variable, but if you do not finish the form session, the value will be there.

So, even though it does NOT run because of the "registered" condition, you will find the value in the debug.
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
rbock 07 Aug, 2023
TGA/TGT/TGH = DB Read Action (ACL "Super User")

On Record(s) found -> redirect Action

#########################################

Data

Array
(
[view] => form
[chronoform] => 801052298000
)

#########################################

Files

Array
(
)

#########################################

Vars

Array
(
[TGT] => NULL
[TGA] => NULL
[TGH] => NULL
)

#########################################

Info

Array
(
[TGT] => Array
(
[returned] => NULL
)

[TGA] => Array
(
[returned] => NULL
)

[TGH] => Array
(
[returned] => NULL
)

)
rbock 07 Aug, 2023
ACL is set to "Super User". When logging in as a normal user, the action is still executed.
rbock 07 Aug, 2023
Array
(
[TGT] => Array
(
[field_id] => 54321
[item_id] => 12345
[value] => TGT
)

[TGA] => NULL
[TGH] => NULL
)
Max_admin 07 Aug, 2023
do NOT worry about the vars, they are "cached" in session.

Does it redirect ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
rbock 07 Aug, 2023
Yes, I am being redirected.
rbock 08 Aug, 2023
Hello Max...

No solution in sight yet?
Max_admin 08 Aug, 2023
I can not produce this here, I test by settin the ACL to "super users", I preview the form in admin and the action works, but then I change the url to front and it does not work as expected.

Please note that ACL in v8 is based on Joomla "View Levels", unlike v7 which is based on "User Groups", a view level has multiple user groups.
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
rbock 08 Aug, 2023
not for me... but even with this domain, not all new functions are available, despite version 8.0.11.
Max_admin 08 Aug, 2023
do you have any cache enabled ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
rbock 08 Aug, 2023
Hm, could opcache play a role here?
rbock 08 Aug, 2023
Answer
1 Likes
Ok, it was probably due to settings for opcache.
You need to login to be able to post a reply.