edit related record broken

22 views
Skip to first unread message

tom wible

unread,
Mar 3, 2024, 11:31:47 AMMar 3
to Xataface
<div class="record-view-wrapper" style="display: none;">

it does work in other contexts tho...

Steve Hannah

unread,
Mar 3, 2024, 11:36:06 AMMar 3
to xata...@googlegroups.com
Can you provide some more details on the problem?  E.g.  What is broken about it?  What happens when you click on "Edit" in a related record?

On Sun, Mar 3, 2024 at 8:31 AM 'tom wible' via Xataface <xata...@googlegroups.com> wrote:
<div class="record-view-wrapper" style="display: none;">

it does work in other contexts tho...

--
You received this message because you are subscribed to the Google Groups "Xataface" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xataface+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xataface/d06481f4-fcf6-4bbf-9157-a91e15c15197n%40googlegroups.com.


--
Steve Hannah
Web Lite Solutions Corp.

tom wible

unread,
Mar 4, 2024, 9:30:47 AMMar 4
to Xataface
sorry, when a non-admin is displaying the properties table, clicking on the owner info tab displays the related record, with edit & open actions. clicking on edit opens the iframe, but because display:none the form is not shown. if i instead open the related record, editing is possible.

it works normally under an admin user, so is probably permissions related...it's not a show-stopper, just an annoyance

Steve Hannah

unread,
Mar 4, 2024, 6:25:50 PMMar 4
to xata...@googlegroups.com
Yeah, sounds like a permissions issue. 
Can you check if the "parent" record grants the user the "edit related records" permission? 
If it doesn't, then this sounds like a bug somewhere in that it shouldn't even show you the "edit" link.  If it does, then it sounds like a bug somewhere in that it should have just worked.

On Mon, Mar 4, 2024 at 6:30 AM 'tom wible' via Xataface <xata...@googlegroups.com> wrote:
sorry, when a non-admin is displaying the properties table, clicking on the owner info tab displays the related record, with edit & open actions. clicking on edit opens the iframe, but because display:none the form is not shown. if i instead open the related record, editing is possible.

it works normally under an admin user, so is probably permissions related...it's not a show-stopper, just an annoyance

--
You received this message because you are subscribed to the Google Groups "Xataface" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xataface+u...@googlegroups.com.

tom wible

unread,
Mar 5, 2024, 10:01:00 AMMar 5
to Xataface
not explicitly:

    function rel_owners__permissions(&$record)
    {
            return array(
                'add new related record'=>0,
                'add existing related record'=>0,
                'import related record'=>0,
                'remove related record'=>0,
                'delete related record'=>0 );
    }

tom wible

unread,
Mar 5, 2024, 11:49:56 AMMar 5
to Xataface
adding explicit perms fixes it:

    function getPermissions(Dataface_Record $record = null)
    {
        $role = getRole();
        if ( ! $role )
            return Dataface_PermissionsTool::NO_ACCESS();
        $perms = Dataface_PermissionsTool::getRolePermissions($role);
        $perms['edit'] = 0;
        $perms['find'] = 1;
        $perms['add new related record'] = 0;  
        $perms['add existing related record'] = 0;  
        $perms['add new record'] = 0;  
        $perms['remove related record'] = 0;  
        $perms['update related records'] = 0;  
        $perms['edit related records'] = 0;  
        return $perms;
    }

perhaps my role permissions need to be tweaked...now where did i define those;-}
Reply all
Reply to author
Forward
0 new messages