Gina Häußge
be3ff5f043
✨ API endpoint to retrieve info about current user
...
As suggested by @fieldOfView.
Implements #3418
2020-01-22 14:58:29 +01:00
Gina Häußge
c36fa6da90
🐛 Fix readonly group permissions
...
Those were accidentally stripped.
2020-01-22 14:55:35 +01:00
Gina Häußge
aadcf650c7
🐛 Fix UI caching again
...
Was broken by 3f3cb556a7 in between server
restarts due to the wrong stuff being fetched by the preemptive cache.
2020-01-21 17:26:45 +01:00
Gina Häußge
95c3fa0b04
🐛 Readd requires line that somehow got missing
...
Addendum to 3f3cb556a7
Closes #3425
2020-01-21 16:03:48 +01:00
Gina Häußge
1d0829a1db
🐛 Introduce ClientAuthed event
...
May act as entry point for any kind of push messages a plugin might
wish to send to the client after a connect happened. Since depending
on the current permission configuration this might only be possible
once the client has authenticated on the socket, this is required.
Should close #3400
2020-01-21 15:53:52 +01:00
Gina Häußge
8d31d6687e
🐛 Also trigger login dialog eval on permission change
...
Not just on logout.
Follow-up to #3425
2020-01-21 15:00:20 +01:00
Gina Häußge
3f3cb556a7
🐛 Fix guest access to settings
...
Needed its own permission, which in turn needed some changes in how the
whole "guest without read permission" situation is handled. I've
reintroduced a custom login view since the main UI would not be able
to fully load up without settings access. Said login view will override
the default UI view if the account in question does not have
Permissions.STATUS and also Permissions.SETTINGS_READ. It pretty much is
the forcelogin plugin from 1.3.x.
Closes #3425
2020-01-21 14:49:46 +01:00
Gina Häußge
4460c8bee0
🐛 env needs to be native strings
...
So, bytes under py2 and unicode under py3.
Closes #3428
2020-01-20 13:36:02 +01:00
Gina Häußge
89b597a656
🐛 Fix remember me checkbox
...
Closes #3426
2020-01-17 16:34:13 +01:00
Gina Häußge
e1a25a8913
🐛 Fix caching issue for freshly rendered timelapses
...
Closes #3396
2020-01-16 12:13:38 +01:00
Gina Häußge
482c2f7115
🐛 Fix timelapse progress under Py3
...
Closes #3409
2020-01-15 16:53:54 +01:00
Gina Häußge
7fa4ebd1ec
Merge pull request #3414 from fieldOfView/fix_allows_multiple_needs
...
Fix checking against multiple Needs on OctoPrintPermission
2020-01-14 12:44:18 +01:00
Gina Häußge
9c3b552aa8
🔥 Remove unused leftover code
2020-01-14 11:24:22 +01:00
Gina Häußge
3229e65a8d
♻ Remove assumptions about UI from permission model
...
Implements #3419
2020-01-14 11:22:54 +01:00
fieldOfView
7191d39b51
Fix multiple Needs on OctoPrintPermission
...
fixes #3398
2020-01-03 08:41:59 -08:00
Gina Häußge
58bc5171ee
✏ Adjusted plugin tutorial for py3
2019-12-13 13:43:29 +01:00
Gina Häußge
74f3bc9ae6
🔖 staging/devel is now 1.4.0rc4.dev
2019-12-12 15:01:53 +01:00
Gina Häußge
464d9c0757
🔖 Preparing release of 1.4.0rc3
1.4.0rc3
2019-12-12 13:00:35 +01:00
Gina Häußge
94ae90ab80
♻ Cleaned up a pre-py3 leftover comment
2019-12-12 12:43:45 +01:00
Gina Häußge
33b89550a4
🐛 Fix a unicode issue under win32
...
subprocess env must not contain unicode strings but could now after some
py3 related refactorings.
2019-12-12 12:43:13 +01:00
Gina Häußge
9661469532
🐛 Fix some permission bindings
...
Closes #3388
2019-12-11 15:01:57 +01:00
Gina Häußge
b06c222a7d
🐛 Fix checksum calculation in stk500v2 under py3
...
See #3382
2019-12-11 10:50:40 +01:00
Gina Häußge
9f85b54681
🐛 Convert decoded header to unicode
...
See #3382
2019-12-11 10:28:32 +01:00
Gina Häußge
5d1ad5d75d
🐛 Add blinker dependency for flask_principal
...
Was forgotten in 928d62a517
2019-12-10 16:35:07 +01:00
Gina Häußge
dc32f955b7
🐛 Fix forwarding of HTTPExceptions on SimpleApiPlugins
...
Part of #3375
2019-12-10 16:16:40 +01:00
Gina Häußge
220592c267
🐛 IspError should be a proper Exception
...
Otherwise our try-catch-blocks won't catch it anymore.
2019-12-10 12:56:23 +01:00
Gina Häußge
0faa6879b4
☂ Resilience against issue in Printoid
...
Closes #3381
2019-12-10 12:55:47 +01:00
Gina Häußge
71b5de91bf
🐛 Fix 403 response
...
Dumping string representations of the permission objects doesn't make
sense, and neither does rewriting the error description in the first
place.
2019-12-09 19:06:53 +01:00
Gina Häußge
928d62a517
♻ Vendoring flask_principal
...
It no longer seems to be maintained and there's an issue in the code
we need fixed.
2019-12-09 19:06:52 +01:00
Gina Häußge
78bd3b1a52
🐛 "remember" does not need to be set on session
...
Be able to deal with that.
Follow up to #3370
2019-12-09 19:06:51 +01:00
Gina Häußge
b9bab0577b
♻ Remove monkey patch that's no longer needed
2019-12-09 17:32:31 +01:00
Gina Häußge
c41551a643
🐛 Fix wrong handling of session protection signal
...
We should only clear out the identity when the session has actually
been deemed deleted, not just on staleness due to e.g. a client IP
change.
Closes #3370
2019-12-09 17:31:53 +01:00
Gina Häußge
6c92dd1303
🐛 PNotify needs position:fixed
...
Closes #3377
2019-12-09 14:19:16 +01:00
Gina Häußge
124f01ca2d
🐛 py3: ensure an int as rolling window size
...
Closes #3371
2019-12-06 13:40:03 +01:00
Gina Häußge
0dece85fa7
🐛 Fix notifications being visible w/ needed login
2019-12-04 15:24:08 +01:00
Gina Häußge
caebf90ee9
🐛 Fix short UI flicker before loading animation
2019-12-04 14:37:16 +01:00
Gina Häußge
0c77014903
☔ Make sure js/css mime types are always correct
...
Even if we are running on windows and something is borked in the
registry...
Closes #3367
2019-12-03 18:03:11 +01:00
Gina Häußge
231a796200
☔ Limit legal plugin permission keys
2019-12-03 17:26:29 +01:00
Gina Häußge
fe755405e8
📝 Add docs for octoprint.access.permissions hook
...
As mentioned in #3365
2019-12-03 17:14:00 +01:00
Gina Häußge
2200f2186c
🐛 Fix permissions of global API key
...
Closes #3365
2019-12-03 14:55:32 +01:00
Gina Häußge
b57b7cb606
🐛 appkeys: fix key gen under Python 2
...
And refactor key generation to be located in ONE central utility method
to avoid issues like that in the future.
Closes #3366
2019-12-03 12:56:14 +01:00
Gina Häußge
f2b2496e58
🔖 staging/devel is now 1.4.0rc3.dev
2019-12-02 16:23:02 +01:00
Gina Häußge
e603b98d0d
🔖 Preparing release of 1.4.0rc2
1.4.0rc2
2019-12-02 14:11:43 +01:00
Gina Häußge
e235fc299f
🐛 Make sure data is set
...
Closes #3364
2019-12-02 14:07:41 +01:00
Gina Häußge
4f25ed546e
🐛 Only proceed if children is set AND truthy
...
Closes #3363
2019-12-02 13:55:04 +01:00
Gina Häußge
f72b9db6a9
🐛 Fix wrong escape
...
Closes #3362
2019-12-02 12:24:48 +01:00
Gina Häußge
80e8e33283
🐛 Don't logout always-logged-in AdminUser
...
If ACL is disabled it doesn't make sense to log it out and it's causing
issues further down the line due to different handling.
Fixes #3361
2019-12-02 12:24:44 +01:00
Gina Häußge
00d0396417
🐛 Fix autologin
...
Closes #3357
2019-11-29 12:50:16 +01:00
Gina Häußge
59e39662f1
🐛 timelapse: fix accessed event payload field
...
Closes #3354
2019-11-28 18:02:34 +01:00
Gina Häußge
038e1b9a57
🐛 appkeys: Fix a deprecation warning
2019-11-26 18:42:36 +01:00