godot-asset-library
godot-asset-library copied to clipboard
Expose the hide and restore functionality
Exposes the hide/restore functionality to the author of the asset.
Problems:
- Hidden assets are currently not linked anywhere for the owner or moderator. (unless I missed it)
- Hidden assets are still viewable with a direct link
Solution/Changes:
- [x] Expose the asset to authors ~~and moderators~~ if the
user
filter is used. (defaultMy Assets
link functionality) - [x] Hidden assets can only be viewed by the author or a moderator, otherwise it will throw a not found error.
- [x] Restructured the asset view to be more clear
- [x] Add a
author tools
container in the same way as theadmin tools
container.
Hidden asset in my assets
:
Asset view:
@Piralein is this PR still a draft? what are the steps needed to finish it up? Thanks :)
I haven't tested the API side. It could have unexpected problems, because of the change to the query and login token validation. I can't remember what I considered as a problem specifically. The website part should be ready, but I need to re-test it.