Commit Graph

163 Commits

Author SHA1 Message Date
Kerim d6e4c9171b from mac 2022-12-14 20:55:13 +05:00
merdan 9489f49958 home page start 2021-03-11 15:16:57 +05:00
Ben Thomson 866af34b1a
Use number literals for booleans in filter conditions.
SQL Server treats literal "false" and "true" as column names. This is probably the same for any other database type that does not have a true "boolean" storage.

Refs: https://github.com/rainlab/blog-plugin/pull/526#issuecomment-716299459
2020-10-26 15:32:13 +08:00
Luke Towers 51d1c16369 More tweaks to the default publisher permissions, added separate permission for users to manage their own personal editor preferences. 2020-10-20 09:20:16 -06:00
Samuell b63a39b106
Add missing import (#5101) 2020-06-01 10:42:15 -06:00
Luke Towers 5c3ba9a28a Fix naming conflict
Reported by @alxy https://github.com/octobercms/october/pull/5088#issuecomment-636448210
2020-05-31 11:23:31 -06:00
Luke Towers 655c8011b9
Fix client side validation (#5088)
* Add data-request-validate to core save buttons

* Check if client side validation is desired before running it

Fixes #5076.
2020-05-25 12:53:48 -06:00
Ashleigh Sims 439ed2cc33
Unsuspend a backend user from user update screen (#5032) 2020-04-07 13:22:41 -06:00
Samuel Georges 9d120ad66b Add header and cookie support to ResponseMaker 2019-11-02 18:57:32 +11:00
Samuel Georges 92bd8360b9 Fixes issue where behaviors are not booting 2019-11-02 16:30:33 +11:00
Samuel Georges f73d8e6d49 Removes double middleware layer
For some reason it was decided to allow October controllers to support Laravel middleware, this has been reverted because it is a convoluted solution that doesn't respect the original architecture. There are other ways to handle middleware requirements

The original use case appeared to be to simply allow backend controllers to inject headers. This is something easily solvable whilst keeping the simple and original workflow
2019-11-02 16:16:32 +11:00
Samuell 5d6fe72619 Update delete buttons in user controllers (#4640)
Credit to @Samuell1
2019-09-26 14:58:07 -06:00
Samuell c21c22e1ba Add option to disable UpdateManager after backend login (#4266)
Credit to @Samuell1. Fixes #3471.
2019-07-19 14:50:42 -06:00
Ben Thomson a59d3b83eb Code quality clean up (#4449)
Credit to @bennothommo
2019-07-18 08:50:37 -06:00
Ayumi Hamasaki 884042952f Block off SW running in backend and reduce lookups (#4385)
Credit to @ayumihamsaki. Related #4384
2019-06-25 17:15:11 +03:00
Ben Thomson 6fb6e5f71c
Improve Travis CI build process (#4394) 2019-06-24 07:38:41 +08:00
fansaien b1b9141dcc Improve support for protected files on S3 (#4390)
Credit to @fansaien. S3 supports generating temporaryUrls to files that don't exist yet so this adds a check to make sure temp URLs are only generated for valid files.
2019-06-21 00:24:08 -06:00
Luke Towers e87184d2bd Fix for installs that don't use the cloud drivers 2019-05-31 01:03:07 -06:00
Luke Towers ef4f1e49ee Added `temporaryUrlTTL` configuration option, switched is_a() to instanceof 2019-05-31 00:53:27 -06:00
Luke Towers aea4857eba Use temporaryUrls for protected files if the storage driver in use supports them 2019-05-30 17:47:01 -06:00
Luke Towers a1e6849a71 Implemented easy impersonation of backend users controlled by the backend.impersonate_users permission 2019-05-09 10:36:46 -06:00
Samuel Georges c5bc804d73 Remove redundant header_remove() call
The response is returned directly to the route so this is not needed, it was likely added as an artefact of a previous implementation

Refs #3773
Refs #3746
2019-03-29 06:02:06 +11:00
Samuel Georges 2b1323b7b2 Change default widget column sizes
Refs #3965
2019-03-29 01:08:20 +11:00
Ben Thomson 3363b219f6 Delay backend controller middleware until after request is processed (#4190)
Credit to @bennothommo. Fixes #4183.
2019-03-21 01:19:28 -06:00
Ayumi Hamasaki dd53206a82 Service Workers Invalid security token and Clear Site Data HTTP Header (#4088)
If a website has a Service Worker installed it would load and register before a User tries to login to the backend causing a "Invalid security token" message. This PR unregisters any installed Service Worker when a User opens the backend Signin webpage.

I have also added the NEW Security Headers to add Protection to October's Cache and Cookies. This includes two new Middleware that first clears any bad cached data before a User tries to login and the second Middleware will clear all the sensitive User Data when a User signs out of the Backend.

For more info on the new Security Header 'Clear Site Data' you can see the spec found here: https://www.w3.org/TR/clear-site-data/

Fixes #4076, fixes #3707.
2019-03-01 16:22:18 -06:00
Luke Towers 8f5ff1be5a Support groups field being removed 2019-02-25 13:21:33 -06:00
Nathan van der Werf 7232e7a29d Escape output to prevent XSS injection (#4074)
Credit to @nathan-van-der-werf
2019-01-18 10:26:56 -06:00
Luke Towers cc84c7cf7a Revert back to output() and outputThumb() methods
Adds a default false flag to enable the new behaviour of returning responses instead.
2019-01-16 12:27:07 -06:00
Luke Towers 743c74643a Switched to getHttpResonse() instead of output() 2019-01-15 15:58:45 -06:00
Luke Towers 2fb44fdbee Return backend 404 from files controller 2019-01-15 15:05:57 -06:00
Luke Towers 54a67ca556 Implemented soft deleting for backend users 2018-12-17 23:09:17 -06:00
Szabó Gergő 9522deff4e Add filters to log pages (#3815)
Credit to @gergo85. Thanks to @petehalverson for octodock to test this with
2018-10-16 09:09:41 -06:00
Nathan van der Werf 0f0d108da0
Remove unused imports 2018-08-24 19:51:59 +02:00
Nathan van der Werf 8b6f11e6ac Extract child instructions 2018-08-15 19:25:42 +02:00
Nathan van der Werf a3d7a028b4 Replace is_null with "=== null" comparison 2018-08-15 18:54:46 +02:00
Wellyson Freitas c12b76de75 Add extensibility to auth restore view (like signin view) (#3549)
Credit to @wellyfrs.
2018-05-17 00:56:39 -06:00
Luke Towers f056e8dcb2
Retrieve protected files using the defined file model
Adds support to retrieve protected files using the class they are defined to be using if that class differs from the default System\Models\File class. This makes it possible to use a custom class extending the base file model class that does output processing on the file data (for example, an EncryptedFile class that has to decrypt the file contents before they can be output to the browser).
2018-03-09 23:07:53 -06:00
Szabó Gergő 0256ebc966 Add role filter to administrators (#3350)
Credit to @gergo85
2018-01-10 10:18:19 -06:00
Luke Towers 69e56b0b5b
Fixes #3315
Fixes #3315 by moving the manipulation of the filter widget scopes to the controller event method instead of before any part of the controller constructor method is run.
2017-12-28 13:21:00 -06:00
Luke Towers f850b5d7ca Removes unnecessary blocking head placeholders. Refs: https://github.com/rainlab/pages-plugin/issues/239 2017-11-15 20:26:48 -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
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 f739e457e4 Enable superusers to actually use the is_superuser filter 2017-10-14 21:55:56 -06: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
Luke Towers 7fd81c4c2a Initial work on moving media controller to the backend 2017-09-27 22:40:39 -06:00
Samuel Georges a5377b5018 Replace missing permissions 2017-07-28 00:05:35 +10:00
Samuel Georges 9cadea9b19 Code doc improvements 2017-07-27 17:35:14 +10: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
Samuel Georges 8002c1010b Create migrate script to split permissions out
Permissions have been moved from Groups to a new Role model
Refs #2367
2017-07-11 19:17:44 +10:00