4202 Commits

Author SHA1 Message Date
Samuel Georges
e6de2a5521 Fixes exception on empty token 2017-11-02 19:53:20 +11:00
Luke Towers
d164145229
Fixes #2613
This fixes #2613 by reloading the form widgets with the modified data after `model.filterFields`. **NOTE**: `$this->processExistingItems()` isn't simply just moved to `prepareVars()` because that messes up the adding new repeater item functionality by repeating the content from the fields for the last item in that group that already exists on the repeater.
2017-11-01 14:18:41 -06:00
Nikolay
2239f988d2 Fixes #3211 with improvements to reverse migration (#3212)
Fixes #3211
2017-10-31 12:34:48 -06:00
Luke Towers
c7a3354dfd
Move backend.page.beforeDisplay after auth check
Fixes #3215. Related: 47cd204686 (diff-6cdbb280344f40eebe758cf8e8e5f7d9)
2017-10-31 08:45:11 -06:00
Samuel Georges
4a6e0e1e0e Implement CSRF token by default
Implement CSRF protection on CMS for postback handling
2017-10-30 09:00:17 +11:00
Pierre-André Vullioud
08989ff40a Add licence file (#3207)
Adds the MIT license directly to the repo.
2017-10-27 16:06:56 -06:00
arifnyet
eb0e5c74c1 Support default config option for list filters (#3201)
Fixes #2329
2017-10-26 11:12:02 -06:00
Fl0Cri
ec8dd56121 Fix richeditor popup z-index inside modal (#3194)
Fixes #3098. Related: #3111, #3113, #3114
2017-10-24 12:35:31 -06:00
Vojta Svoboda
04cb4ddd2c Check if given partial name is also file or only folder (#3190)
Fixes #2383. Credit to @vojtasvoboda, reviewed by @CptMeatball
2017-10-23 08:48:34 -06:00
Christophe Vuagniaux
dc16902fca Don't block backend connection when a plugin migration triggers exception (#3188) 2017-10-21 10:11:11 -06:00
Luke Towers
d292eeb85e Remove ambiguity around what classes are being used
Fixes https://github.com/octobercms/october/issues/3184.
2017-10-20 21:39:54 -06:00
Luke Towers
a62a6e6493 Support on and off options for the switch field
Adds support for custom on and off options for the switch field type.
2017-10-20 11:47:30 -06:00
Luke Towers
aee81081df Hide Settings menu when no sub pages to display (#3172)
Remove the Settings main menu item if there are no submenus to display. Fixes https://github.com/octobercms/october/issues/2175
2017-10-18 11:22:33 -06:00
Luke Towers
ac2e5937f0 Document list widget column value events
Documents `backend.list.overrideColumnValue` and adds and documents `backend.list.overrideColumnValueRaw`. See https://github.com/octobercms/october/issues/3180 for why this is necessary.
2017-10-18 10:57:17 -06:00
Christophe Vuagniaux
c7dcd386d1 Fix exception Class 'System\Twig\MediaLibrary' not found in build 426 (#3181)
see 08f9cd8
2017-10-18 07:56:52 -06:00
Pierre-André Vullioud
de9804c897 Update Faker to 1.7 (#3174)
a lot of improvements from 1.4 like :
Language specific formatters
https://github.com/fzaninotto/Faker#language-specific-formatters
a new formats.
v1.0.426
2017-10-16 08:59:40 -06:00
Samuel Georges
669a4cee6e Merge branch 'maintenance-mediamanager' into develop 2017-10-16 17:56:34 +11:00
Samuel Georges
2a1234d21c Update MM lang refs 2017-10-16 17:52:50 +11:00
Luke Towers
8a5d0c3b13 Correct row numbers displayed in the import result form (#3136)
* Add support for a source index offset

Improves the reporting of errors in the importing process by getting the correct offset for the displayed row where the error took place.

* Add the source index offset to the row number

Refs ce6df84b04
2017-10-15 13:45:35 -06:00
Luke Towers
46205298df Add the user's role to the columns 2017-10-15 11:49:06 -06:00
Luke Towers
f739e457e4 Enable superusers to actually use the is_superuser filter 2017-10-14 21:55:56 -06:00
Samuel Georges
9309d826d0 Update zh-tw MM lang 2017-10-15 01:31:04 +11:00
Samuel Georges
4790f8b7a7 Update zh-cn MM lang 2017-10-15 01:29:13 +11:00
Samuel Georges
75d16dab26 Update uk MM lang 2017-10-15 01:27:28 +11:00
Samuel Georges
79b5094aed Update tr MM lang 2017-10-15 01:25:09 +11:00
Samuel Georges
974bbf1303 Update sv MM lang 2017-10-15 01:21:15 +11:00
Samuel Georges
a7b6250e74 Update ro MM lang 2017-10-15 01:03:26 +11:00
Samuel Georges
c9851ca158 Update pt-pt MM lang 2017-10-15 01:01:00 +11:00
Samuel Georges
cc295cc40b Update pt-br MM lang 2017-10-15 00:58:13 +11:00
Samuel Georges
93a3b4e1e7 Update pl MM lang 2017-10-15 00:43:39 +11:00
Samuel Georges
3c27eb4728 Update nl MM lang 2017-10-15 00:41:50 +11:00
Samuel Georges
8262897010 Update nb-no MM lang 2017-10-15 00:37:53 +11:00
Samuel Georges
e28c287d08 Update lv MM lang 2017-10-15 00:29:08 +11:00
Samuel Georges
56f4d5972d Update lt MM lang 2017-10-15 00:04:24 +11:00
Samuel Georges
88fa577946 Update kr MM lang 2017-10-15 00:00:01 +11:00
Samuel Georges
dd089e4bed Update it MM lang 2017-10-14 23:52:44 +11:00
Samuel Georges
aa1766ad12 Update hu MM lang 2017-10-14 23:34:05 +11:00
Samuel Georges
74611f7220 Update fr MM lang 2017-10-14 23:31:27 +11:00
Samuel Georges
476645bafd Update fa MM lang 2017-10-14 23:29:52 +11:00
Samuel Georges
95dd254705 Update et MM lang 2017-10-14 23:25:44 +11:00
Samuel Georges
1eb99b8165 Update es MM lang 2017-10-14 23:14:20 +11:00
Samuel Georges
3aa9d91cf8 Update en MM lang 2017-10-14 23:05:08 +11:00
Samuel Georges
1826b19197 Update el MM lang 2017-10-14 23:02:22 +11:00
Samuel Georges
2593252909 Update de MM lang 2017-10-14 22:38:25 +11:00
Samuel Georges
9d4b86a67a Update da MM lang 2017-10-14 22:35:38 +11:00
Samuel Georges
b8ad025968 Update cs MM lang 2017-10-14 22:28:20 +11:00
Samuel Georges
d30aa578b4 Update bg MM lang 2017-10-14 22:24:36 +11:00
Samuel Georges
56b8d38bbf Update be MM lang 2017-10-14 22:20:56 +11:00
Samuel Georges
fdc2891734 Update deprecated refs 2017-10-14 22:06:34 +11:00
Luke Towers
fa840d79f6 Improve support for three tier user system
This builds on 4fd1ca824f by switching from a two tier approach to permissions (superusers and regular users), to a three tier approach (superusers (developer), second-in-command (clients with manage_users permissions), and regular users). If support for a four tier approach is necessary (Superuser, Franchise Owner, Franchise Business Manager, Franchise Staff as an example), then it can be implemented simply by adding a flag to roles that would prevent anyone except for a superuser from assigning that role.

The specific changes made by this commit is to support users with the manage_users permission (but who are not superusers) to be able to assign roles to other users and improvements to the sanctity of the superuser itself. Non-superusers can no longer see or edit superusers in the backend (that was previously poorly handled as a non-superuser with manage_users could take over a superuser account since they could modify that account willy-nilly), and the is_superuser filter is accordingly removed as well.
2017-10-14 00:25:52 -06:00