Commit graph

1164 commits

Author SHA1 Message Date
a8b6e672c8 Email sender fixed for notifications 2021-03-21 16:24:46 +01:00
a51e712925 Security fix. Prevent unauthorized deletion.
Legacy anonymous screenshot uploads could have been deleted by anonymous
users.
2021-03-21 16:24:35 +01:00
1d53e0e9b6 Extend robots.txt 2021-03-15 22:38:56 +01:00
7e7b40f412 Choose a random package for the main page to ask for screenshots 2021-03-14 16:40:01 +01:00
4e07bf00fd Add gravatar to profile page. Attempt to make profile look nicer. 2021-03-10 02:33:40 +01:00
d504e5e914 Increase session timeout from 30 minutes to 6 hours 2021-03-10 01:20:10 +01:00
95223e3ba7 Shorter status text 2021-03-10 01:18:17 +01:00
ee24f99df4 Only allow hiding/un-hiding for approved screenshots 2021-03-10 01:13:12 +01:00
90fc03e13a Rewording 2021-03-10 01:06:12 +01:00
f9130c6972 Cruft 2021-03-10 01:04:43 +01:00
5d0e4a520e Allow hiding and un-hiding of screenshot by moderators 2021-03-10 01:04:37 +01:00
f31502c333 Added colors to status label of a screenshot 2021-03-10 01:04:06 +01:00
27a1811153 Buttons are round and shadowed to make them clearer 2021-03-10 00:31:48 +01:00
b08ba855e9 Ignoring byebug history and VScode config 2021-03-10 00:03:38 +01:00
a22f5128dc minor rewording 2021-03-10 00:03:04 +01:00
7c929ed7d2 Slight rewording 2021-03-09 23:55:35 +01:00
9a9101defe Help text fixed 2021-03-09 23:53:13 +01:00
711f06fcc4 Fix check for own screenshots 2021-03-09 23:36:14 +01:00
e04b54d6fd Show permissions properly
can? :foo, Screenshot only checks if the use can 'foo' any screenshot

can? :foo, Screenshot.new checks for new screenshots not assigned to
them
2021-03-09 23:31:45 +01:00
c922723a9e Admins can hide/unhide screenshots 2021-03-09 22:55:32 +01:00
632939cfa4 Moderators can only hide screenshots - not delete them 2021-03-09 22:55:22 +01:00
43e6e6c028 Minor visual improvement 2021-03-09 22:44:09 +01:00
0207d6b392 My views improved. Own screenshots view added 2021-03-09 22:43:58 +01:00
15b58548cc Show more log lines per page 2021-03-06 20:51:48 +01:00
330536cb7e Link to packages and screenshots (highlighted) from logs view 2021-03-06 20:47:33 +01:00
9a16bad007 Updating Gems 2021-03-06 19:21:36 +01:00
a26b5eaa23 Remove no-longer-needed migration scripts 2021-03-06 19:19:54 +01:00
2fef9c7043 Audit logging improved. References users, screenshots, packages 2021-03-03 23:21:24 +01:00
b6dee6b93c Logging fixed. Debugging finished. 2021-03-03 01:29:26 +01:00
bc7541a2c9 More IP debugging 2021-03-03 01:15:50 +01:00
7f4eab3396 Further IP debugging 2021-03-03 01:12:37 +01:00
0ed05a66ac Debug output for remote IP 2021-03-03 01:06:18 +01:00
fe5655e6d5 Add mandatory new parameter for remote_ip to Log.log 2021-03-03 01:06:08 +01:00
150bd5df3e Local admins can view audit logs 2021-03-03 01:05:48 +01:00
d41220c5fd Basic browser for audit logs added 2021-03-03 01:05:35 +01:00
1c2bfb87d3 Cruft removed. @remote_ip populated globally 2021-03-03 01:04:59 +01:00
46f76c5220 APT fixtures moved and shrunk 2021-03-02 22:38:32 +01:00
6d39869eff minor addition 2021-03-02 22:33:31 +01:00
86bfff58f2 System test added to verify auto-approval of screenshots from moderators 2021-03-02 01:56:25 +01:00
47df4d8afd Fix test suite 2021-03-02 00:51:24 +01:00
2b24083653 SQL optimisation rolled back. It lead to access problems. 2021-03-01 02:07:55 +01:00
7227f769c0 Avoid displaying unapproved screenshots in Any view 2021-03-01 01:23:52 +01:00
ce9e1d8877 Typo that prevented deleting images 2021-03-01 01:02:39 +01:00
b36a49a6cd Avoid N+1 SQL queries with CanCanCan accessibility checks 2021-03-01 00:49:25 +01:00
f154c1838c Add ability to view approved screenshots for anonymous users 2021-02-28 22:42:28 +01:00
eee196507b Forgot to run tests 2021-02-28 22:07:33 +01:00
7004e14a88 Recovered moderate controller
It may not be necessary but deployment fails as it is refererred to from
other modules
2021-02-28 21:45:31 +01:00
7a3b65fe50 Authorisation management using CanCanCan added 2021-02-28 21:36:46 +01:00
51be4a4777 Two-column layout for login form 2021-02-28 02:37:26 +01:00
b7cc7ef4c0 Removed occurence of removed code 2021-02-28 02:09:29 +01:00