14 Commits

Author SHA1 Message Date
Tobias Kündig
67ee2229a5 Added manual deleted_at checks (#4051)
Fixes #4046 

It is possible that the user model gets fetched using the SoftDelete
trait before the relevant migrations were applied during an update.
To fix this edge case the user model is always fetched using the
withTrashed scope and the deleted_at check is done manually afterwards.

@see https://github.com/octobercms/october/issues/3999
2019-01-18 14:42:25 -06:00
Luke Towers
064daa2d2e Compiled assets, minor docblock update 2019-01-03 16:26:30 -06:00
Nathan van der Werf
62c59a4903 Refactor ternary operators to null coalescing operators 2018-08-15 19:15:13 +02:00
Samuel Georges
4fd1ca824f Introduce concept of system roles
These are roles defined by a special API code, once a system role code is detected, the role becomes locked and its permissions are sourced from the AuthManager. All permissions are granted to system roles by default, unless otherwise specified. This should make it easier to create client accounts as "Publishers", hiding developer tools like the CMS and Builder plugins by default.
2017-07-13 19:29:50 +10:00
Quezler
cc17b679f1 Code dusting (#2826)
Code cleaning according to PSR-2 w/ exemptions (mostly dust).
2017-04-24 21:38:19 +10:00
Samuel Georges
0a981a25f7 API docs progress
Controller -> SystemController for consistency
2017-03-16 17:08:20 +11:00
Samuel Georges
917cfd437f Make sure a tab is defined always - Refs #1397 2015-08-29 16:45:01 +10:00
Samuel Georges
a1291c3716 Restyle Administrator pages 2015-05-21 22:55:08 +10:00
Stefan Talen
61cf1ad710 Merge branch 'develop' of https://github.com/octobercms/october into feature/PSR-2
Conflicts:
	modules/backend/behaviors/FormController.php
	modules/backend/classes/AuthManager.php
	modules/backend/lang/fa/lang.php
	modules/backend/widgets/Form.php
	modules/cms/classes/CmsCompoundObject.php
	modules/cms/classes/ComponentHelpers.php
	modules/cms/formwidgets/Components.php
2014-10-11 11:58:20 +02:00
Sam Georges
3836a9b8d7 Refs #679 - Fixed Visibility must be declared on property issues 2014-10-11 12:27:21 +11:00
Stefan Talen
7dc24cfff1 Updating backend/classes 2014-10-10 23:12:50 +02:00
Sam Georges
56d0c3351b private -> protected 2014-08-01 14:54:16 +10:00
Sam Georges
4bd7f9975c Oops, now plugins can register permissions :-) 2014-05-19 22:42:16 +10:00
Sam Georges
71a5dd67ab Welcome to the world, October :-) 2014-05-14 23:24:20 +10:00