Miguel Nogueira
5f1f92a9ce
Code review
...
This commit fixes some superficial instances of Broken Access Control
(https://owasp.org/www-project-top-ten/OWASP_Top_Ten_2017/Top_10-2017_A5-Broken_Access_Control ).
There may be some more instances of this, as authorization was only done
after most of the controllers were done (big mistake).
Some refactoring was also performed, where Route Model Binding with DI
(dependency injection) was used whenever possible, to increase
testability of the codebase.
Some reused code was also moved to Helper classes as to enforce DRY;
There may be some lines of code that are still copy-pasted from other
parts of the codebase for reuse.
Non-breaking refactoring changes were made, but the app as a whole still
needs full manual testing, and customised responses to HTTP 500
responses. Some errors are also not handled gracefully and this wasn't
checked in this commit.
2020-07-16 21:21:28 +01:00
Miguel Nogueira
9e2d571298
Fix homepage bg issue
2020-07-16 07:32:52 +01:00
Miguel Nogueira
e16be5dc46
Override styles for auth pages
2020-07-16 07:11:33 +01:00
Miguel Nogueira
1a04880489
Replace basic authentication pages
2020-07-16 06:50:59 +01:00
Miguel Nogueira
3693ce3431
Add footer to all dashboard pages
2020-07-16 06:46:20 +01:00
Miguel Nogueira
4a766620ff
Fix appointment policy not being called correctly
...
This commit fixes the appointment policy being called at the wrong time, with the wrong arguments.
It also fixes wrong references on the auth service provider, also fixing other issues with poliy usage.
Fixes #3 and SPACEJEWEL-HOSTING-59.
2020-07-16 05:24:00 +01:00
Miguel Nogueira
bca6020ab0
Add ability to edit forms and add new fields
...
This commit adds the ability to edit and modify existing forms.
On the technical side, it also adds a new reusable validation Facade which helps reduce duplicated code.
2020-07-15 06:48:49 +01:00
Miguel Nogueira
1f50faaea7
Add ability to preview application
2020-07-12 19:36:12 +01:00
Miguel Nogueira
e978a5417b
Added ability to delete single application
...
Also moved User observer code to Application observer
2020-07-12 17:01:33 +01:00
Miguel Nogueira
4dc412e53c
Added check for constrained models when deleting
2020-07-12 06:39:39 +01:00
Miguel Nogueira
bd0664ce0d
Add ability to edit Vacancies
2020-07-11 20:34:26 +01:00
Miguel Nogueira
4b390ea536
Added full Vacancy description
...
Also added support for Markdown
2020-07-11 05:34:12 +01:00
Miguel Nogueira
035c9399a6
Add "All Applications" page
2020-07-11 02:43:59 +01:00
Miguel Nogueira
bbe3001157
Example env version update
2020-07-10 05:30:22 +01:00
Miguel Nogueira
d1f4be124c
Update wrong key name
2020-07-10 05:26:40 +01:00
Miguel Nogueira
0f126886f5
Use package for .env editing
...
The solution provided by this package is similar to what was previously implemented (see #1 ), but it's nicely packaged and made available in a Facade.
2020-07-10 05:00:41 +01:00
Miguel Nogueira
4deb882d23
Add check for null env and attempt to recover
2020-07-09 09:07:49 +01:00
Miguel Nogueira
635f8593d3
Update outdated information
2020-07-09 08:53:56 +01:00
Miguel Nogueira
c3a6b16a13
Clear configuration cache before editing it
2020-07-09 08:50:54 +01:00
Miguel Nogueira
fb4d832489
Beautified the search and replace function
2020-07-09 08:46:45 +01:00
Miguel Nogueira
4456d19c1f
Clear cache and refresh *before* running migration
2020-07-09 07:12:15 +01:00
Miguel Nogueira
c7fd8989f9
More command improvements
2020-07-09 07:07:28 +01:00
Miguel Nogueira
fb422c1ef7
Merge remote-tracking branch 'origin-github/master'
2020-07-09 07:04:20 +01:00
Miguel Nogueira
a42df354c7
Command improvements
...
Remove process args
Silence npm WARN output (when applicable)
Compat for npm in different directories
Reverse npm silence
Replace Symfony Process
Remove Symfony Process refs
Add forgotten output for commands
Removed colons that artisan already added
Remove optional parameters in install cmd
Simplify settings save call
Further simplify settings save call
2020-07-09 07:04:04 +01:00
Miguel Nogueira
173dc57aa7
Further simplify settings save call
2020-07-09 06:27:21 +01:00
Miguel Nogueira
cb2b45b55f
Simplify settings save call
2020-07-09 06:22:43 +01:00
Miguel Nogueira
a3e727f1f1
Remove optional parameters in install cmd
2020-07-09 06:14:07 +01:00
Miguel Nogueira
669c3c87e6
Removed colons that artisan already added
2020-07-09 06:01:10 +01:00
Miguel Nogueira
96298cd38c
Add forgotten output for commands
2020-07-09 05:55:23 +01:00
Miguel Nogueira
00f37d3f7e
Remove Symfony Process refs
2020-07-09 05:53:00 +01:00
Miguel Nogueira
653641f4e8
Replace Symfony Process
2020-07-09 05:52:41 +01:00
Miguel Nogueira
d121119706
Reverse npm silence
2020-07-09 05:37:11 +01:00
Miguel Nogueira
1c08cd9057
Compat for npm in different directories
2020-07-09 05:29:55 +01:00
Miguel Nogueira
1bc63725c9
Silence npm WARN output (when applicable)
2020-07-09 05:27:33 +01:00
Miguel Nogueira
c7caf3a67c
Remove process args
2020-07-09 05:23:46 +01:00
Miguel Nogueira
7c7d4a306c
Separate process args
2020-07-09 05:20:16 +01:00
Miguel Nogueira
016ce1fbf6
Remove invalid reference to Artisan
2020-07-09 05:12:18 +01:00
Miguel Nogueira
f673ef8222
Add installation bootstrap script
2020-07-09 05:10:22 +01:00
Miguel Nogueira
2bf8c8e90c
Enable maintenance mode during installation
2020-07-09 05:06:25 +01:00
Miguel Nogueira
d111864bea
Add depedency install progress bar
2020-07-09 05:01:50 +01:00
Miguel Nogueira
4dbf86a328
Add installation command
...
Adds an installation and .env modification commands for better usability
2020-07-09 04:52:53 +01:00
Miguel Nogueira
291c98cd0e
Merge branch 'master' of github.com:spacejewel-hosting/staffmanagement
2020-07-08 08:15:01 +01:00
Miguel Nogueira
119ea1d8ec
Updated config defaults
2020-07-08 08:14:36 +01:00
Miguel Nogueira
0282a6a7c9
Update issue templates
2020-07-08 07:58:18 +01:00
Miguel Nogueira
8ed2eb5027
Update README.md
2020-07-08 07:50:14 +01:00
vagrant
61034ccae9
Added simple installation script
2020-07-08 06:02:32 +00:00
Miguel Nogueira
ed95f02e00
Fix error where exception appeared instead of error message
...
This commit fixes an issue with fake MC usernames being used and
resulting in a fatal exception. Displays an error msg now.
2020-06-28 04:51:32 +01:00
Miguel Nogueira
c58c46eda8
Fix error where wrong method is called
2020-06-28 01:30:34 +01:00
Miguel Nogueira
91c408fb4f
Trim config results to prevent error in case of extra spaces
2020-06-28 00:50:28 +01:00
Miguel Nogueira
599d742e96
Use UUID conversion facade
2020-06-28 00:46:49 +01:00