I have created a form and have set the access-settings only to role anonymous-user.
However the anonymous does not see the form. I only see the form when a user is logged in.
It looks like the 'access-settings' does not work.

Or did I miss something?

CommentFileSizeAuthor
#16 entityform-fix_entityform_reference_access-1624928-16.patch547 bytestedbow
#6 test_case.sql_.gz114.14 KBAnonymous (not verified)

Comments

tedbow’s picture

I can't get this to happen. Can you try the last git version?

Anonymous’s picture

Also in the latest version (git) it happens.

It could be related with installation and removal of Content Access and Premium Contect modules.
Which function renders the page so I can debug it?

tedbow’s picture

Take a look at entityform_form_wrapper

Anonymous’s picture

If I run with admin entity_form_wrapper is called. The form is shown.
If I logout and then call the form, entity_form_wrapper is not called and so the form is not shown.

Anonymous’s picture

-- deleted

Anonymous’s picture

StatusFileSize
new114.14 KB

I have created a database from scratch. Made a simpel form.
Form can be seen by administrator. Even if the administrator is not in the access settings list.
If I create a user and log in with (access settings for authenticated and anonymous) he cannot see
the form. Also an anonymous user does not see the form.
It looks like the access settings are being bypassed.

I have attached the database for the use case above.
admin: admin/admin
test: test/test

Enabled modules:
Chaos tool suite Chaos tools (ctools) Module Enabled 7.x-1.0
Core Block (block) Module Enabled 7.14
Core Color (color) Module Enabled 7.14
Core Comment (comment) Module Enabled 7.14
Core Contextual links (contextual) Module Enabled 7.14
Core Dashboard (dashboard) Module Enabled 7.14
Core Database logging (dblog) Module Enabled 7.14
Core Field (field) Module Enabled 7.14
Core Field SQL storage (field_sql_storage) Module Enabled 7.14
Core Field UI (field_ui) Module Enabled 7.14
Core File (file) Module Enabled 7.14
Core Filter (filter) Module Enabled 7.14
Core Help (help) Module Enabled 7.14
Core Image (image) Module Enabled 7.14
Core List (list) Module Enabled 7.14
Core Menu (menu) Module Enabled 7.14
Core Node (node) Module Enabled 7.14
Core Number (number) Module Enabled 7.14
Core Options (options) Module Enabled 7.14
Core Overlay (overlay) Module Enabled 7.14
Core Path (path) Module Enabled 7.14
Core RDF (rdf) Module Enabled 7.14
Core Search (search) Module Enabled 7.14
Core Shortcut (shortcut) Module Enabled 7.14
Core System (system) Module Enabled 7.14
Core Taxonomy (taxonomy) Module Enabled 7.14
Core Text (text) Module Enabled 7.14
Core Toolbar (toolbar) Module Enabled 7.14
Core Update manager (update) Module Enabled 7.14
Core User (user) Module Enabled 7.14
Entityforms Entityforms (entityform) Module Enabled 7.x-1.0-alpha4
Fields Entity Reference (entityreference) Module Enabled 7.x-1.0-rc3
Fields pgn2html (pgn2html) Module Enabled
Other Entity API (entity) Module Enabled 7.x-1.0-rc3
Views Views (views) Module Enabled 7.x-3.3
Core Bartik (bartik) Theme Enabled 7.14
Core Seven (seven) Theme Enabled 7.14

also tested with
Entityforms Entityforms (entityform) Module Enabled 7.x-1.0-alpha4+6-dev
same result.

tedbow’s picture

Form can be seen by administrator. Even if the administrator is not in the access settings list.
If I create a user and log in with (access settings for authenticated and anonymous)

If you are using user uid =1 then they have all permissions. Also if "authenticated" is given access that means every user who has any role.

Please try the latest dev version of Entityform
Thanks

Anonymous’s picture

Done that already.. same result.

tedbow’s picture

I see you have "Entity Reference" enabled. Are you viewing the form when it is embedded in a field?

Anonymous’s picture

Yes,

That is correct.

Willem

tedbow’s picture

@wvdakker, ok just FYI use of "Entity Reference" should have be part of original description.

Do you have the same problem if you use the direct "submit link" of the entity form?

Anonymous’s picture

If I directly use the submit link (http://localhost/?q=eform/submit/form) then the form is shown
for the anonymous user.

Problem with entity reference?

tedbow’s picture

If you can debug "entityform_access" is the function that determines access.

Anonymous’s picture

entityform_access is never been called.
Not for the admin user not for the anonymous user.

gr,
Willem

tedbow’s picture

Ok, I am now seeing the problem. Trying to figure it out

tedbow’s picture

Category: support » bug
StatusFileSize
new547 bytes

Ok, changed this to a bug.

I have also attached a patch. Please try it out and let me know if it works for you. I would also appreciate if you could test it out with regular entityforms(not with entity reference)

Thanks
Ted

Anonymous’s picture

Thanks, it works for the entity reference.
I will later today test it wit the regular entity forms.

gr,
Willem

Anonymous’s picture

It also works with the regular forms.

gr,
WIllem

tedbow’s picture

Status: Active » Fixed

Ok, I committed this patch to the dev version

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.