Commit Graph

174 Commits

Author SHA1 Message Date
Flavio Copes
c1af35e9ac Fix for change in 3eb2a5664a
Handle in Admin the logic to strip home from Page routes and urls
(optional)
2015-12-29 19:08:48 +01:00
Flavio Copes
9e0a28cd8b Allow to set the nonce for a POST action in the query url too 2015-12-29 16:06:57 +01:00
Flavio Copes
0eb87ede66 Fix redirect in deleting media from file field. Better format for file field code 2015-12-22 14:06:23 +01:00
Flavio Copes
b76b79e611 Improve File input field for Admin
Add removing files from a blueprint to Admin, moved from Pro. Drop
`showuploaded`, `ispluginconfig`, `showuploadedpreview` options from
the File field. Added a "blueprint" option to specify the field name
and type, e.g. `plugins.admin` or `themes.antimatter`. Dropped the
multiple option, as it'd need more handling that now it's not there.
2015-12-21 16:22:04 +01:00
Djamil Legato
fbe778dbae Prevent upgrade of Grav if PHP min requirement is not met. Gracefully fail with additional information 2015-12-18 13:42:57 -08:00
Flavio Copes
64048e4fff cleanFilesData now returns just the filename 2015-12-16 15:14:46 +01:00
Flavio Copes
135df6720e Add files processing to the admin plugin, to be used by the file fileds 2015-12-16 10:20:34 +01:00
Flavio Copes
a5cbf22d77 strtolower the username prior to calling authenticate 2015-12-11 17:25:55 +01:00
Flavio Copes
71e1fdfa7b Return "Invalid Security Token" instead of "Unauthorized". Also, return that string for AJAX calls 2015-12-03 17:44:56 +01:00
Flavio Copes
3c45f97264 Remove noreply@getgrav.org default address 2015-12-02 18:42:33 +01:00
Flavio Copes
48f6da2bc3 Handle case where the email plugin "from" email is not configured 2015-12-02 18:11:24 +01:00
Andy Miller
586c5bfa3c Merge branch 'develop' of https://github.com/getgrav/grav-plugin-admin into develop 2015-12-01 11:02:47 -07:00
Andy Miller
65270c38e3 set enabled/disabled to true/false 2015-12-01 10:57:55 -07:00
Flavio Copes
e82c347508 Merge branch 'develop' into feature/integrate-with-admin-pro 2015-11-30 15:58:40 +01:00
Andy Miller
4372f643c6 Merge branch 'develop' of https://github.com/getgrav/grav-plugin-admin into develop 2015-11-29 21:22:27 -07:00
Andy Miller
a2275b8b73 Fix for modular preview not functioning as expected #254 2015-11-29 21:22:22 -07:00
Flavio Copes
5591ae6836 Merge branch 'develop' into feature/integrate-with-admin-pro 2015-11-26 12:14:27 +01:00
Flavio Copes
518fef3309 Fix saving after latest changes (Themes class was not used in the controller, so loaded for nothing) 2015-11-25 18:35:45 +01:00
Flavio Copes
31431dc73c Merge branch 'develop' into feature/integrate-with-admin-pro 2015-11-24 19:45:26 +01:00
Andy Miller
925fe14d7b Fix issue where _redirect: /plugins was getting stored in the YAML on enable/disable of plugins 2015-11-23 20:00:45 -07:00
Flavio Copes
3d2966c181 Last nonce fixes 2015-11-22 17:41:49 +01:00
Flavio Copes
16d745b377 Merge branch 'develop' into feature/integrate-with-admin-pro 2015-11-21 16:40:18 +01:00
Flavio Copes
59fd550136 Add nonce to backup download link 2015-11-20 20:27:18 +01:00
Flavio Copes
1f6bda7d75 Add nonce verification to all get requests with the task param 2015-11-19 22:54:17 +01:00
Flavio Copes
1c8a33f7a9 Make sure we don't process the nonce as a Data value 2015-11-19 19:17:48 +01:00
Flavio Copes
37f98cc4f3 Let handling slash replacement automatically 2015-11-17 11:57:46 +01:00
Flavio Copes
d2763660fe Handle nonce in admin logout too 2015-11-17 11:56:21 +01:00
Flavio Copes
949c96fe3b Fix class name 2015-11-13 18:45:55 +01:00
Flavio Copes
1840eb80f3 Only check for nonce if the getNonce method exists (nonces are implemented in Grav) 2015-11-13 18:20:18 +01:00
Flavio Copes
efb63f7873 Only check nonce on POST requests 2015-11-10 17:53:09 +01:00
Flavio Copes
567c1dac01 Fix 'if'! 2015-11-09 15:09:31 +01:00
Flavio Copes
2d097313b4 Improve verification of nonce 2015-11-06 17:26:35 +01:00
Flavio Copes
24f3df1c76 Use Grav nonce functionality 2015-11-06 15:32:26 +01:00
Flavio Copes
37cf4d8092 Minor fixes 2015-11-04 14:43:25 +01:00
Flavio Copes
aa11f29290 Merge branch 'develop' into feature/integrate-with-admin-pro 2015-11-01 14:03:10 +01:00
Andy Miller
179958e697 Redirect to correct page when you change folder/slug 2015-10-22 15:10:27 -06:00
Flavio Copes
39ce45aa2a Allow to filter pages by access level 2015-10-21 19:46:51 +02:00
Flavio Copes
b31eac1592 Handle redirect for new group creation 2015-10-20 16:36:39 +02:00
Flavio Copes
436f6f91e7 Fix saving pages in locale-specific languages in admin 2015-10-03 15:07:05 +02:00
Flavio Copes
d2daa17352 Add static helper methods to be used by the new page blueprints, and store the information in the session when creating a new page 2015-10-01 15:33:33 +02:00
Flavio Copes
4fac3d951c Drop error log 2015-10-01 15:01:57 +02:00
Flavio Copes
bc7efe0dd4 Fix weird issue in the language code being added twice when saving a page in a new language 2015-10-01 14:59:07 +02:00
Andy Miller
8055dfc8ba Fix for #184 where redirects had hardcoded /admin/ in them. 2015-09-18 10:07:49 -06:00
Andy Miller
1c7928a114 Added ability to render front-end templates in markdown preview #185 2015-09-17 11:41:14 -06:00
Andy Miller
1ce6688a61 Merge branch 'develop' of https://github.com/getgrav/grav-plugin-admin into develop 2015-09-15 16:07:11 -06:00
Andy Miller
36e741bc7a Pass theme flag into Installer::install() so it knows to use copyInstall() 2015-09-15 16:07:05 -06:00
Flavio Copes
632e3efa94 Fix permissions being added as arrays in dataPermissions() 2015-09-15 12:02:18 +02:00
Flavio Copes
a48e70228d Add pages permission to dataPermissions(), fixes #172 2015-09-15 11:58:26 +02:00
Andy Miller
b9290e4779 Merge branch 'develop' of https://github.com/getgrav/grav-plugin-admin into develop 2015-09-14 09:39:50 -06:00
Andy Miller
0549445e4b removed a couple of todo messages 2015-09-14 09:39:45 -06:00