Commit Graph

86 Commits

Author SHA1 Message Date
Johannes Meyer f782c08d80 RoleForm: Highlight set privileges in headers
resolves #4241
2021-04-08 10:13:24 +02:00
Johannes Meyer 68f101b015 RoleForm: Don't let privilege labels break on dashes 2021-04-07 14:30:14 +02:00
Johannes Meyer ab7d73a8ee RoleForm: Add static method `collectProvidedPrivileges()`
Was previously part of method `init()`. Split up into its
own method to allow external usage.
2021-04-07 14:30:14 +02:00
Johannes Meyer 544febe84e RoleForm: Fix self reference when creating a new role without parent 2021-03-19 09:03:19 +01:00
Johannes Meyer cc65164a67 Adjust global permissions 2021-02-18 11:11:39 +01:00
Johannes Meyer 429a70f05f Auth: Allow to ignore any and all restrictions 2021-02-18 11:11:39 +01:00
Johannes Meyer bdd0f204f0 Auth: Support single inheritance in roles 2021-02-18 11:11:39 +01:00
Johannes Meyer 87d741265e Auth: Add support for denied permissions 2021-02-18 11:11:39 +01:00
Johannes Meyer c2efbbdafc RoleForm: Don't hide permissions/restrictions in admin roles
resolves #4068
2021-01-12 11:38:59 +01:00
Johannes Meyer d9044203e7 RoleForm: Use hook `ConfigFormEventsHook` 2019-12-09 09:02:14 +01:00
Johannes Meyer e2bcdd365a RoleForm: Add zero-width char after each `/` in permission and restriction labels
Helps browsers break onto newlines if it's too narrow.
2019-12-09 08:21:55 +01:00
Johannes Meyer 7ae3f187bd RoleForm: Add new app permission `no-user/password-change` 2019-12-05 09:12:59 +01:00
Johannes Meyer 7b488d7f93 swag: Fix violations of PSR-12
PSR-2 has been deprecated and phpcs v3.5.3
now checks for the successor PSR-12
2019-12-04 11:28:08 +01:00
Johannes Meyer f22d759858 RoleForm: Fully hide a fieldset's content if collapsed 2019-07-29 16:02:48 +02:00
Florian Strohmaier 3c48daf022 CSS: Style role form 2019-07-29 10:19:39 +02:00
Johannes Meyer 83c386ea15 RoleForm: Don't wrap the h4's in a control-group 2019-07-29 10:19:39 +02:00
Florian Strohmaier f57fc96b57 Add styles for roles form 2019-07-29 10:19:39 +02:00
Johannes Meyer 1b4b42a465 RoleForm: Use an `<h3>` for set headers, not legend
legend and `overflow:hidden` are bugged in safari..
2019-07-29 10:19:39 +02:00
Johannes Meyer 37387b603f RoleForm: Use a fieldset's legend as collapsible control 2019-07-29 10:19:39 +02:00
Johannes Meyer 5a10b06200 RoleForm: Show a header for permissions and restrictions 2019-07-29 10:17:59 +02:00
Johannes Meyer 616f1fe2c8 RoleForm: Wrap module prefixes of permissions and restrictions in `<em>` 2019-07-29 10:17:59 +02:00
Johannes Meyer f871caeecd RoleForm: Show *General Module Access* instead of `module/...` 2019-07-29 10:17:59 +02:00
Johannes Meyer 8310d9c781 roles: Restructure form and utilize class `RolesConfig` 2019-07-23 13:53:29 +02:00
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