Joey_M Posted January 13, 2018 Posted January 13, 2018 I upgraded to 4.2.7 yesterday, and today one of my admins (the sites editor) has said that he cannot edit page records. The buttons within the databases ACP listing aren't showing for him. This isn't the case with any other admins, and oddly the admin can use direct links within the ACP to edit records. Likewise he can actually edit and do everything from the front site, it's just these buttons have magically disappeared. I'm wondering if anyone has this issue?
Daniel F Posted January 13, 2018 Posted January 13, 2018 Hi, Could you please review the admins permissions? Is he allowed to edit records? Are the other admins allowed to edit records?
newbie LAC Posted January 13, 2018 Posted January 13, 2018 Hello, 18 minutes ago, Daniel F said: Could you please review the admins permissions? Is he allowed to edit records? Are the other admins allowed to edit records? All checked. There are no buttons, but admin can access to edit form page using direct link \applications\cms\modules\admin\databases\records.php if ( \IPS\Member::loggedIn()->hasAcpRestriction( 'cms', 'records', 'records_edit' ) ) { $return['edit'] = array( 'title' => 'edit', 'icon' => 'pencil', 'link' => \IPS\Http\Url::internal('app=cms&module=databases&controller=records&database_id=' . \IPS\Request::i()->database_id . '&id=' . $row['primary_id_field'] . '&do=form'), 'data' => array() ); } if ( \IPS\Member::loggedIn()->hasAcpRestriction( 'cms', 'records', 'records_delete' ) ) { $return['delete'] = array( 'title' => 'delete', 'icon' => 'times-circle', 'link' => \IPS\Http\Url::internal( 'app=cms&module=databases&controller=records&database_id=' . \IPS\Request::i()->database_id . '&id=' . $row['primary_id_field'] . '&do=delete' ), 'data' => array( 'delete' => '' ) ); } if ( \IPS\Member::loggedIn()->hasAcpRestriction( 'cms', 'records' Why the module records? Should be databases
Daniel F Posted January 13, 2018 Posted January 13, 2018 I'm reviewing this right now and once we have a fix for this, we'll release a patch
Daniel F Posted January 13, 2018 Posted January 13, 2018 14 minutes ago, newbie LAC said: Hello, All checked. There are no buttons, but admin can access to edit form page using direct link \applications\cms\modules\admin\databases\records.php if ( \IPS\Member::loggedIn()->hasAcpRestriction( 'cms', 'records', 'records_edit' ) ) { $return['edit'] = array( 'title' => 'edit', 'icon' => 'pencil', 'link' => \IPS\Http\Url::internal('app=cms&module=databases&controller=records&database_id=' . \IPS\Request::i()->database_id . '&id=' . $row['primary_id_field'] . '&do=form'), 'data' => array() ); } if ( \IPS\Member::loggedIn()->hasAcpRestriction( 'cms', 'records', 'records_delete' ) ) { $return['delete'] = array( 'title' => 'delete', 'icon' => 'times-circle', 'link' => \IPS\Http\Url::internal( 'app=cms&module=databases&controller=records&database_id=' . \IPS\Request::i()->database_id . '&id=' . $row['primary_id_field'] . '&do=delete' ), 'data' => array( 'delete' => '' ) ); } if ( \IPS\Member::loggedIn()->hasAcpRestriction( 'cms', 'records' Why the module records? Should be databases Thanks, thanks correct
Joey_M Posted January 13, 2018 Author Posted January 13, 2018 7 hours ago, newbie LAC said: It's a bug. Submit a ticket. Already did before this Newbie. Quite funny and weird how the bug effects the one person who needs to edit the content. Thanks for your help @newbie LAC and @Daniel F
Recommended Posts
Archived
This topic is now archived and is closed to further replies.