Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ protected function allowAdd($data = [])
*/
protected function allowEdit($data = [], $key = 'id')
{
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
$recordId = isset($data[$key]) ? (int) $data[$key] : 0;
$categoryId = 0;

if ($recordId) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ protected function allowAdd($data = [])
*/
protected function allowEdit($data = [], $key = 'parent_id')
{
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
$recordId = isset($data[$key]) ? (int) $data[$key] : 0;
$user = $this->app->getIdentity();

// Check "edit" permission on record asset (explicit or inherited)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ protected function allowAdd($data = [])
*/
protected function allowEdit($data = [], $key = 'id')
{
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
$recordId = isset($data[$key]) ? (int) $data[$key] : 0;

// Since there is no asset tracking, fallback to the component permissions.
if (!$recordId) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ protected function allowAdd($data = [])
*/
protected function allowEdit($data = [], $key = 'id')
{
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
$recordId = isset($data[$key]) ? (int) $data[$key] : 0;
$user = $this->app->getIdentity();

// Zero record (id:0), return component edit permission by calling parent controller method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ protected function allowAdd($data = [])
*/
protected function allowEdit($data = [], $key = 'id')
{
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
$recordId = isset($data[$key]) ? (int) $data[$key] : 0;
$user = $this->app->getIdentity();

// Zero record (id:0), return component edit permission by calling parent controller method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ protected function allowAdd($data = [])
*/
protected function allowEdit($data = [], $key = 'parent_id')
{
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
$recordId = isset($data[$key]) ? (int) $data[$key] : 0;
$user = $this->app->getIdentity();

// Zero record (parent_id:0), return component edit permission by calling parent controller method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ protected function allowSave($data, $key = 'id')
protected function allowEdit($data = [], $key = 'id')
{
// Initialise variables.
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
$recordId = isset($data[$key]) ? (int) $data[$key] : 0;

// Zero record (id:0), return component edit permission by calling parent controller method
if (!$recordId) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ protected function allowAdd($data = [])
*/
protected function allowEdit($data = [], $key = 'id')
{
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
$recordId = isset($data[$key]) ? (int) $data[$key] : 0;

// Since there is no asset tracking, fallback to the component permissions.
if (!$recordId) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ protected function allowAdd($data = [])
*/
protected function allowEdit($data = [], $key = 'id')
{
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
$recordId = isset($data[$key]) ? (int) $data[$key] : 0;

if (!$recordId) {
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ protected function allowAdd($data = [])
*/
protected function allowEdit($data = [], $key = 'id')
{
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
$recordId = isset($data[$key]) ? (int) $data[$key] : 0;
$user = $this->app->getIdentity();

// Zero record (id:0), return component edit permission by calling parent controller method
Expand Down