Skip to content

Commit

Permalink
Remove 'edit only' blocking statements. (CFM-218)
Browse files Browse the repository at this point in the history
  • Loading branch information
arlen committed Sep 24, 2025
1 parent 093219c commit f32493b
Show file tree
Hide file tree
Showing 18 changed files with 0 additions and 90 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@
* @license Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
*/

// This view does currently not support read-only
if($vv_action !== 'edit') {
return;
}

// XXX https://todos.internet2.edu/browse/CFM-465 send type - this should be 'information' (not a warning)
$banners = [
__d('information', 'plugin.config.none')
Expand Down
5 changes: 0 additions & 5 deletions app/plugins/CoreApi/templates/MatchCallbacks/fields.inc
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@
* @license Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
*/

// This view does currently not support read-only, and add is not used
if($vv_action !== 'edit') {
return;
}

if(!empty($vv_api_endpoint)) {
// XXX https://todos.internet2.edu/browse/CFM-465 send type - this should be 'information' (not a warning)
$banners = [
Expand Down
5 changes: 0 additions & 5 deletions app/plugins/CoreAssigner/templates/FormatAssigners/fields.inc
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@
* @license Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
*/

// This view does currently not support read-only, and add is not used
if($vv_action !== 'edit') {
return;
}

$fields = [
'format',
'collision_mode',
Expand Down
5 changes: 0 additions & 5 deletions app/plugins/CoreAssigner/templates/SqlAssigners/fields.inc
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@
* @license Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
*/

// This view does currently not support read-only, and add is not used
if($vv_action !== 'edit') {
return;
}

$fields = [
'server_id',
'source_table',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@
* @license Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
*/

// This view only supports edit
if($vv_action !== 'edit') {
return;
}

$fields = [
'require_comment',
'denial_message_template_id',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@

declare(strict_types = 1);

// This view only supports edit
if($vv_action !== 'edit') {
return;
}

$fields = [
'enable_person_find',
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@
* @license Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
*/

// This view only supports edit
if($vv_action !== 'edit') {
return;
}

$fields = [
'name_type_id',
'email_address_type_id',
Expand Down
5 changes: 0 additions & 5 deletions app/plugins/CoreEnroller/templates/EmailVerifiers/fields.inc
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@
* @license Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
*/

// This view only supports edit
if($vv_action !== 'edit') {
return;
}

// Used for placeholders
$defaultValues = array_combine(
array_values($defaults),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@
* @license Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
*/

// This view only supports edit
if($vv_action !== 'edit') {
return;
}

$fields = [
'type_id'
];
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@
* @license Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
*/

// This view only supports edit
if($vv_action !== 'edit') {
return;
}

$fields = [
'invitation_validity' => [
'default' => 1440
Expand Down
5 changes: 0 additions & 5 deletions app/plugins/CoreServer/templates/HttpServers/fields.inc
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@
* @license Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
*/

// This view does currently not support read-only, and add is not used
if($vv_action !== 'edit') {
return;
}

$fields = [
'url',
'username',
Expand Down
5 changes: 0 additions & 5 deletions app/plugins/CoreServer/templates/Oauth2Servers/fields.inc
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@
* @license Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
*/

// This view does currently not support read-only, and add is not used
if($vv_action !== 'edit') {
return;
}

// Render the Redirect URI
$fields = [
'redirect_uri' => [
Expand Down
5 changes: 0 additions & 5 deletions app/plugins/CoreServer/templates/SmtpServers/fields.inc
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@
* @license Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
*/

// This view does currently not support read-only, and add is not used
if($vv_action !== 'edit') {
return;
}

$fields = [
'hostname',
'port' => [
Expand Down
5 changes: 0 additions & 5 deletions app/plugins/CoreServer/templates/SqlServers/fields.inc
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@
* @license Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
*/

// This view does currently not support read-only, and add is not used
if($vv_action !== 'edit') {
return;
}

$fields = [
'type',
'hostname',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@
* @license Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
*/

// This view only supports edit
if($vv_action !== 'edit') {
return;
}

$fields = [
'external_identity_source_id' => [
'fieldLabel' => __d('env_source', 'controller.EnvSources', [1])
Expand Down
5 changes: 0 additions & 5 deletions app/plugins/EnvSource/templates/EnvSources/fields.inc
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@
* @license Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
*/

// This view does not currently support read-only
if($vv_action !== 'edit') {
return;
}

$fields = [
// 'duplicate_mode',
'sp_mode',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@
* @license Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
*/

// This view only supports edit
if($vv_action !== 'edit') {
return;
}

$fields = [
'external_identity_source_id' => [
'fieldLabel' => __d('orcid_source', 'controller.OrcidSources', [1])
Expand Down
5 changes: 0 additions & 5 deletions app/plugins/OrcidSource/templates/OrcidSources/fields.inc
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@

use OrcidSource\Lib\Enum\OrcidSourceScopeEnum;

// This view does not currently support read-only
if($vv_action !== 'edit') {
return;
}

$vv_inherited_scopes = OrcidSourceScopeEnum::DEFAULT_SCOPE;
if (filter_var($vv_obj->scope_inherit, FILTER_VALIDATE_BOOLEAN)) {
$vv_inherited_scopes = $vv_obj->server?->oauth2_server?->scope ?? OrcidSourceScopeEnum::DEFAULT_SCOPE;
Expand Down

0 comments on commit f32493b

Please sign in to comment.