|
@@ 1421-1428 (lines=8) @@
|
| 1418 |
|
} |
| 1419 |
|
|
| 1420 |
|
foreach ( $group[ 'fields' ] as $field ) { |
| 1421 |
|
if ( false === PodsForm::permission( $field[ 'type' ], $field[ 'name' ], $field, $group[ 'fields' ], $pod, $id ) ) { |
| 1422 |
|
if ( pods_var( 'hidden', $field[ 'options' ], false ) ) |
| 1423 |
|
$field[ 'type' ] = 'hidden'; |
| 1424 |
|
else |
| 1425 |
|
continue; |
| 1426 |
|
} |
| 1427 |
|
elseif ( !pods_has_permissions( $field[ 'options' ] ) && pods_var( 'hidden', $field[ 'options' ], false ) ) |
| 1428 |
|
$field[ 'type' ] = 'hidden'; |
| 1429 |
|
|
| 1430 |
|
$value = ''; |
| 1431 |
|
|
|
@@ 1608-1615 (lines=8) @@
|
| 1605 |
|
<?php |
| 1606 |
|
foreach ( $group[ 'fields' ] as $field ) { |
| 1607 |
|
|
| 1608 |
|
if ( false === PodsForm::permission( $field[ 'type' ], $field[ 'name' ], $field, $group[ 'fields' ], $pod, $id ) ) { |
| 1609 |
|
if ( pods_var( 'hidden', $field[ 'options' ], false ) ) |
| 1610 |
|
$field[ 'type' ] = 'hidden'; |
| 1611 |
|
else |
| 1612 |
|
continue; |
| 1613 |
|
} |
| 1614 |
|
elseif ( !pods_has_permissions( $field[ 'options' ] ) && pods_var( 'hidden', $field[ 'options' ], false ) ) |
| 1615 |
|
$field[ 'type' ] = 'hidden'; |
| 1616 |
|
|
| 1617 |
|
$value = ''; |
| 1618 |
|
|
|
@@ 1788-1795 (lines=8) @@
|
| 1785 |
|
} |
| 1786 |
|
|
| 1787 |
|
foreach ( $group[ 'fields' ] as $field ) { |
| 1788 |
|
if ( false === PodsForm::permission( $field[ 'type' ], $field[ 'name' ], $field, $group[ 'fields' ], $pod, $id ) ) { |
| 1789 |
|
if ( pods_var( 'hidden', $field[ 'options' ], false ) ) |
| 1790 |
|
$field[ 'type' ] = 'hidden'; |
| 1791 |
|
else |
| 1792 |
|
continue; |
| 1793 |
|
} |
| 1794 |
|
elseif ( !pods_has_permissions( $field[ 'options' ] ) && pods_var( 'hidden', $field[ 'options' ], false ) ) |
| 1795 |
|
$field[ 'type' ] = 'hidden'; |
| 1796 |
|
|
| 1797 |
|
$value = ''; |
| 1798 |
|
|
|
@@ 1853-1860 (lines=8) @@
|
| 1850 |
|
|
| 1851 |
|
foreach ( $group[ 'fields' ] as $field ) { |
| 1852 |
|
|
| 1853 |
|
if ( false === PodsForm::permission( $field[ 'type' ], $field[ 'name' ], $field, $group[ 'fields' ], $pod, $id ) ) { |
| 1854 |
|
if ( pods_var( 'hidden', $field[ 'options' ], false ) ) |
| 1855 |
|
$field[ 'type' ] = 'hidden'; |
| 1856 |
|
else |
| 1857 |
|
continue; |
| 1858 |
|
} |
| 1859 |
|
elseif ( !pods_has_permissions( $field[ 'options' ] ) && pods_var( 'hidden', $field[ 'options' ], false ) ) |
| 1860 |
|
$field[ 'type' ] = 'hidden'; |
| 1861 |
|
|
| 1862 |
|
$value = ''; |
| 1863 |
|
|
|
@@ 1977-1984 (lines=8) @@
|
| 1974 |
|
$pod = self::$current_pod; |
| 1975 |
|
|
| 1976 |
|
foreach ( $metabox[ 'args' ][ 'group' ][ 'fields' ] as $field ) { |
| 1977 |
|
if ( false === PodsForm::permission( $field[ 'type' ], $field[ 'name' ], $field, $metabox[ 'args' ][ 'group' ][ 'fields' ], $pod, $id ) ) { |
| 1978 |
|
if ( pods_var( 'hidden', $field[ 'options' ], false ) ) |
| 1979 |
|
$field[ 'type' ] = 'hidden'; |
| 1980 |
|
else |
| 1981 |
|
continue; |
| 1982 |
|
} |
| 1983 |
|
elseif ( !pods_has_permissions( $field[ 'options' ] ) && pods_var( 'hidden', $field[ 'options' ], false ) ) |
| 1984 |
|
$field[ 'type' ] = 'hidden'; |
| 1985 |
|
|
| 1986 |
|
$value = ''; |
| 1987 |
|
|