Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User: Add user group required info message #1126

Merged
merged 1 commit into from
Nov 30, 2024
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
1 change: 1 addition & 0 deletions application/modules/user/controllers/admin/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ public function treatAction()
$user = $userMapper->loadFromArray($userData);

if (empty($userData['groups'])) {
$this->addMessage('userGroupRequired', 'info');
$userData['groups'][0] = 2;
}
foreach ($userData['groups'] as $groupId) {
Expand Down
1 change: 1 addition & 0 deletions application/modules/user/translations/de.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
'delUserMsg' => 'Der Benutzer wurde erfolgreich entfernt.',
'delLastAdminProhibited' => 'Es ist nicht erlaubt den letzten aktiven Benutzer mit zugewiesener Gruppe "Administrator" zu entfernen.',
'delOwnUserProhibited' => 'Es ist nicht erlaubt Ihren eigenen Benutzer zu entfernen.',
'userGroupRequired' => 'Ein Benutzer muss in mindestens einer Benutzergruppe sein. Es wurde die Benutzergruppe "User" zugewiesen.',
'userNotFound' => 'Benutzer nicht gefunden.',
'insufficientRightsToEditUser' => 'Sie haben nicht die nötigen Rechte um diesen Benutzer zu bearbeiten.',
'menuSettingsGallery' => 'Galerie',
Expand Down
1 change: 1 addition & 0 deletions application/modules/user/translations/en.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
'delUserMsg' => 'User got deleted successfully.',
'delLastAdminProhibited' => 'It is not allowed to delete the last user with the group "Administrator" assigned.',
'delOwnUserProhibited' => 'It is not allowed to delete the your own user.',
'userGroupRequired' => 'A user must be in at least one user group. User group "User" assigned.',
'userNotFound' => 'User not found.',
'insufficientRightsToEditUser' => 'You do not have permission to edit this user.',
'menuSettingsGallery' => 'Gallery',
Expand Down