Skip to content

Commit

Permalink
Small cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
flack committed Jun 28, 2024
1 parent 2f182ee commit 609221c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions lib/net/nehmer/comments/config/schemadb_default.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
'title' => 'csrf',
'type' => 'text',
'widget' => 'csrf',
'required' => 'true',
'required' => true,
],
'author' => [
'title' => 'author',
Expand All @@ -28,10 +28,12 @@
],
'content' => [
'title' => 'content',
'required' => 'true',
'required' => true,
'storage' => 'content',
'type' => 'text',
'type_config' => [ 'output_mode' => 'markdown' ],
'type_config' => [
'output_mode' => 'markdown'
],
'widget' => 'textarea',
],
'rating' => [
Expand Down
6 changes: 3 additions & 3 deletions lib/org/openpsa/user/config/schemadb_account_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
'storage' => 'username',
'type' => 'text',
'widget' => 'text',
'required' => 'true',
'required' => true,
],

'current_password' => [
Expand All @@ -25,8 +25,8 @@
'hideinput' => true
],
'storage' => null,
'hidden' => (midcom::get()->auth->can_user_do('org.openpsa.user:manage', class: 'org_openpsa_user_interface')),
'required' => (!midcom::get()->auth->can_user_do('org.openpsa.user:manage', class: 'org_openpsa_user_interface')),
'hidden' => midcom::get()->auth->can_user_do('org.openpsa.user:manage', class: 'org_openpsa_user_interface'),
'required' => !midcom::get()->auth->can_user_do('org.openpsa.user:manage', class: 'org_openpsa_user_interface'),
],

'new_password' => [
Expand Down

0 comments on commit 609221c

Please sign in to comment.