1328 Commits

Author SHA1 Message Date
2b09711eb0 Load user capabilities from Pillar config and allow extensions to extend.
Default caps can be overridden using the USER_CAPABILITIES name in
config_local.py. These can be extended by Pillar Extensions.
2017-08-22 11:31:17 +02:00
566f2a4835 Late-initialise CLI user & late-import UserClass class
This may fix some unit tests issues.
2017-08-22 09:41:38 +02:00
575a7ed1a7 Introduced role-based capability system.
It's still rather limited and hard-coded, but it works.
2017-08-18 14:47:42 +02:00
566a23d3b6 Unified user representation for web and API calls
Both approaches now use a pillar.auth.UserClass instance. g.current_user
is now always set to that instance, even for web entry points.

This UserClass instance can still be keyed like the old dict, but this is
for temporary compatibility and shouldn't be relied on in new or touched
code.
2017-08-18 13:19:34 +02:00
6473ad3de7 Allow iframes that contain content from our Google Cloud storage. 2017-08-17 12:59:42 +02:00
6285e81883 Add course and workshop project types to admin interface 2017-07-27 17:18:20 +02:00
4c896ae6b7 Introducing new icons
graduation-cap and lightbulb thanks to @venomgfx.
2017-07-26 16:55:42 +02:00
b3aee6c8bc Introducing new types of projects
We reorganized training projects into courses and workshops. Project types should be expandable by extensions to avoid this kind of changes.
2017-07-26 16:55:02 +02:00
e18ed79c7b Move training and open-projects to blender-cloud repo 2017-07-26 16:52:45 +02:00
9aa73c5306 Moved project index_collection to blender-cloud repo 2017-07-26 16:52:05 +02:00
e430b2b9a1 Update url_for from main.join to cloud.join
This text should be moved to Blender Cloud.
2017-07-16 01:00:24 +02:00
502e494083 Clean up local login
Use generate_and_store_token and get_local_user directly instead of the /make-token endpoint.
2017-07-14 21:41:40 +02:00
e752a5dc87 On new project creation, use the backend storage set in config 2017-07-14 12:04:24 +02:00
5ec76f8801 Remove Blender Cloud specific pages
They are now available in the blender-cloud repository. This is an effort to make Pillar a generic package.
2017-07-13 18:24:43 +02:00
7f336cb47c Merge branch 'production' 2017-07-13 17:31:28 +02:00
bd13d89817 Added permission check to DELETE of nodes. 2017-07-13 17:29:46 +02:00
8a8f654657 Project sidebar: tweak to active item state 2017-07-13 15:44:00 +02:00
b88594958d Convert spaces to tabs for jade files 2017-07-13 12:36:06 +02:00
3d1757476a Support for OpenGraph and Twitter cards in blogposts 2017-07-13 12:36:06 +02:00
c9af6fe44f Services: Re-design and welcome Flamenco!
Thanks to @fsiddi for feedback
2017-07-11 18:44:30 +02:00
5c21443f9b Homepage: Hide In Production (for now... : 2017-07-11 18:44:30 +02:00
758df5bc26 Gulp: Fix crashing after error (Plumber not plumbing) 2017-07-11 18:44:30 +02:00
4c273671e4 CLI index_users_rebuild() made parallel 2017-07-11 15:29:17 +02:00
f3e79bcfb5 Formatting 2017-07-11 12:56:40 +02:00
b04abef20f Also push user to Algolia when its role changes through the badger
This may cause some superfluous pushes, though.
2017-07-11 12:56:32 +02:00
73d4a77881 Role change blinker: make comparison set-based
This makes it impervious to changes in order and duplicate roles.
2017-07-11 12:17:06 +02:00
c974b388b6 Formatting 2017-06-29 11:05:14 +02:00
66ebfc669a No need to pass ?embed=1 any more 2017-06-29 11:05:14 +02:00
e061d6c29d Allow editing users' email address via /u/
Also reloads the user info after a succesful edit.
2017-06-29 11:05:01 +02:00
08cb2b8438 Simplified string 2017-06-16 14:05:13 +02:00
a19ad751a8 Removed obsolete file upload stuff. 2017-06-16 14:05:02 +02:00
fc4ab9d6ba Removed obsolete comment file + function 2017-06-16 13:40:31 +02:00
2482381999 Added ability to add missing node types to replace_pillar_node_type_schemas 2017-06-16 12:40:10 +02:00
6e6ea6082d Renamed _attachments_embedded_schema to attachments_embedded_schema
It's used in multiple files, and thus shouldn't be marked as 'private'.
2017-06-16 12:39:51 +02:00
50108201cf Removed 'content' property from page node type
... because it doesn't work when it's there.
2017-06-16 12:38:51 +02:00
964526924d Save thumbnails with explicit quality setting.
This should have been the default value anyway, but T49477 looks like it
may not be. This should solve that.
2017-06-15 16:56:23 +02:00
05f6fb6016 Upgraded Pillow 2.8.1 → 4.1.1
Version 4.0.0 was actually the first one to officially support Python 3.6,
so we've been lucky so far that it worked at all ;-)
2017-06-15 16:53:06 +02:00
7ed053b6c1 Little clarification
... because I always forget this myself...
2017-06-15 14:52:43 +02:00
8e02de32ab Pillar Extensions can now determine which user roles to index in Algola 2017-06-15 11:31:48 +02:00
8d94901bab Use app.user_roles to construct the roles field in /u 2017-06-15 11:13:44 +02:00
13b67702b4 Let Pillar extensions register new roles.
These will be available via the app.user_roles property.
2017-06-15 11:06:01 +02:00
cdb148fc0d Just import the forms module, not every single form it it separately. 2017-06-15 11:04:44 +02:00
4fd193ba2b Use (eek) the current_user_is_subscriber var injected by the BCloud extension 2017-06-14 16:26:57 +02:00
efa2321ac3 Pillar extensions can now register global Jinja2 context processors. 2017-06-14 16:10:11 +02:00
94d12c6b66 Menu: Style sidebar nav-item-sign-in 2017-06-14 15:01:37 +02:00
73c5032a48 Convert timezone, not replace it 2017-06-14 12:06:20 +02:00
5955b71459 Comments: Use toastr for notifications 2017-06-12 19:47:00 +02:00
b091044bc2 Small tweaks to buttons 2017-06-12 19:06:02 +02:00
3a500f3ea3 Simplify Errors (404 & 403)
TODO: Use a generic error template and pass error/text
2017-06-12 16:49:43 +02:00
de96e8e189 Move _errors Sass from main to base
That way errors are automatically styled on all other apps (Flamenco, Attract...)
2017-06-12 15:03:06 +02:00