58 Commits

Author SHA1 Message Date
Johannes Meyer
2fa854b0a8 ConfigForm: Introduce and utilize method transformEmptyValuesToNull()
This utility method serves as alternative for all previous custom solutions to prevent empty values from being persisted to INI files.

Since the IniWriter now handles NULL correctly, we're able to refrain from using array_filter for this purpose which was the actual cause for the referenced bug.

fixes #13357
2016-12-01 10:55:24 +01:00
Eric Lippmann
39c7451664 Implement announcements
refs #11198
2016-11-29 15:24:34 +01:00
Alexander A. Klimov
b3a3db6382 Make permission application/log configurable
refs #12655
2016-09-27 11:08:34 +02:00
Alexander A. Klimov
474803fee4 Change all license headers to only reflect a file's year of creation
refs #11000
2016-02-08 15:41:00 +01:00
Eric Lippmann
7fd575080e PHP7: Rename String to StringHelper
refs #10251
2016-01-27 16:46:55 +01:00
Eric Lippmann
742542d52e lib: Remove unused permissions in the RoleForm 2015-11-23 13:13:54 +01:00
Johannes Meyer
0cff2ca545 RoleForm: Provide share restrictions for users and groups
refs #5600
2015-09-16 16:24:29 +02:00
Johannes Meyer
402440735c RoleForm: Add permission "application/share/navigation"
refs #5600
2015-09-16 08:30:40 +02:00
Eric Lippmann
4070f6c75b Merge branch 'master' into feature/namespaced-controllers-5786 2015-08-27 15:05:44 +02:00
Eric Lippmann
8af77e49e9 Optimize imports in the RoleForm 2015-08-27 14:01:29 +02:00
Eric Lippmann
898883f613 Remove unused alias in the RoleForm 2015-08-27 14:01:07 +02:00
Eric Lippmann
a134522e9e Fix PHPDoc indents in the RoleForm 2015-08-27 14:00:56 +02:00
Eric Lippmann
dad9f5ba7c Throw NotFoundError instead of InvalidArgumentException in RoleForm::update() 2015-08-27 14:00:24 +02:00
Eric Lippmann
0681cd2782 Throw NotFoundError instead of InvalidArgumentException in RoleForm::remove() 2015-08-27 13:59:34 +02:00
Eric Lippmann
1135643fe1 Throw AlreadyExistsException instead of InvalidArgumentException in RoleForm::add() 2015-08-27 13:58:51 +02:00
Eric Lippmann
2e970b2965 Fix PHPDoc of RoleForm::load() 2015-08-27 13:58:07 +02:00
Eric Lippmann
13131cb3f6 Throw NotFoundError instead of InvalidArgumentException in RoleForm::load() 2015-08-27 13:57:10 +02:00
Johannes Meyer
93f7bfeeb9 Allow to dis-/enable stacktraces in a user's preferences
refs #9113
2015-08-24 14:47:37 +02:00
Eric Lippmann
a51f0ad65e Roles: Include permissions and restrictions of unloaded modules too
Because we now have module permissions it makes sense to allow an admin to configure permissions and restrictions from a module
before allowing access to it.

refs #9644
2015-07-24 16:13:08 +02:00
Eric Lippmann
7c5b4de087 Fix coding style in RoleForm.php 2015-07-23 12:50:42 +02:00
Eric Lippmann
bf590ed380 Provide module permissions automatically
refs #9644
2015-07-22 15:01:54 +02:00
Thomas Gelf
b154e13ad9 RoleForm: hide config/"all-but-*" for rc1 2015-06-18 15:49:49 +02:00
Johannes Meyer
2490d0ae67 ConfigController: We're configuring user backends from now on
refs #8826
2015-06-02 09:58:57 +02:00
Johannes Meyer
8875ce7d95 Provide permission config/authentication/* 2015-06-02 09:09:11 +02:00
Johannes Meyer
9bd5d4148e Drop permission config/application/groups/member
refs #8826
2015-06-02 09:08:16 +02:00
Johannes Meyer
cf96e66ff2 Rename permission config/application/roles* to config/authentication/...
Does also split it into *, show, add, edit, remove as this should behave like
any other authentication configuration.

refs #8826
2015-06-02 09:07:06 +02:00
Johannes Meyer
3fffd90135 Rename permission config/application/groups* to config/authentication/...
refs #8826
2015-06-02 09:04:34 +02:00
Johannes Meyer
a558f2873a Rename permission config/application/users* to config/authentication/...
refs #8826
2015-06-02 09:02:57 +02:00
Johannes Meyer
46e2393074 UsergroupbackendController: Do only assert that the user has one permission
The configuration of a backend itself should not be that granular.

refs #8826
2015-06-02 08:58:21 +02:00
Johannes Meyer
ea959c2dfd Introduce controller UsergroupbackendController
refs #8826
2015-05-29 16:35:30 +02:00
Johannes Meyer
e55d43418d RoleForm: Add new permission sets for user and group management
refs #8826
2015-05-27 10:39:29 +02:00
Eric Lippmann
e36c430bb3 Merge branch 'feature/protected-menu-8720'
resolves #8720
2015-03-13 04:26:19 +01:00
Eric Lippmann
8563d5ed3f PHPDoc: Use @var instead of @type
Becasue of too many kittens PSR-5 backed off of deprecating @var.
So that's the way we go too.
2015-03-12 16:08:47 +01:00
Eric Lippmann
33112f6a18 Use {@inheritdoc} in the RoleForm
refs #8720
2015-03-12 15:45:22 +01:00
Eric Lippmann
517437eb1b Security: Add wildcard permissions to the config/ tree
refs #8720
2015-03-12 15:45:17 +01:00
Eric Lippmann
195fe6f04b Security: Rename system/config/modules to config/modules
Module config permission and application config permission have to be separeted.
Application config related permissions were added beneath config/application and module
related config permissions will be config/modules for now.

refs #8720
2015-03-12 15:45:14 +01:00
Eric Lippmann
f6e9551235 Security: Rename system/config/roles to config/application/roles
Module config permission and application config permission have to be separeted.
Application config related permissions will be added beneath config/application and module
related config permissions will be added beneath config/modules.

refs #8720
2015-03-12 15:45:10 +01:00
Eric Lippmann
08abbda152 Security: Rename system/config/resources to config/application/resources
Module config permission and application config permission have to be separeted.
Application config related permissions will be added beneath config/application and module
related config permissions will be added beneath config/modules.

refs #8720
2015-03-12 15:45:07 +01:00
Eric Lippmann
a4e81c320a Security: Rename system/config/authentication to config/application/authentication
Module config permission and application config permission have to be separeted.
Application config related permissions will be added beneath config/application and module
related config permissions will be added beneath config/modules.

refs #8720
2015-03-12 15:45:04 +01:00
Eric Lippmann
956bc3c07a Security: Rename system/config/application to config/application/general
Module config permission and application config permission have to be separeted.
Application config related permissions will be added beneath config/application and module
related config permissions will be added beneath config/modules.

refs #8720
2015-03-12 15:44:58 +01:00
Eric Lippmann
6bae2e0a53 Note that our license is GPL v2 or any later version in our license header instead of pointing to the license's URL 2015-02-04 10:52:27 +01:00
Eric Lippmann
ed411ec9b6 Increase size of the permissions set input
fixes #7762
2015-02-03 16:58:53 +01:00
Eric Lippmann
5b4fab0750 Add license header
This time without syntax errors hopefully :)
2015-02-03 16:27:59 +01:00
Eric Lippmann
5fa2e3cfdc Revert "Add license header"
This reverts commit 338d067aba41dd6e9178cebec5433eecd614196e.
2015-02-03 16:16:26 +01:00
Eric Lippmann
338d067aba Add license header
fixes #7788
2015-02-03 15:51:04 +01:00
Eric Lippmann
53e7b44308 security: Provide a permission for module configuration 2015-02-02 14:16:26 +01:00
Eric Lippmann
65a2c47506 security: Provide permissions for our config actions 2015-01-30 13:29:47 +01:00
Johannes Meyer
dbd69ba693 Replace t() and mt() with translate() in the application's forms
refs #7551
2015-01-19 11:26:23 +01:00
Eric Lippmann
4441c1d4de Allow to grant every permission 2014-12-29 11:53:55 +01:00
Eric Lippmann
49dad43a0a Use @type instead of @var in Security/RoleForm.php 2014-12-29 11:53:06 +01:00