godot-asset-library icon indicating copy to clipboard operation
godot-asset-library copied to clipboard

Expose the hide and restore functionality

Open Piralein opened this issue 1 year ago • 2 comments

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. (default My 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 the admin tools container.

Hidden asset in my assets: my_assets

Asset view: asset

Piralein avatar Jun 20 '23 17:06 Piralein

@Piralein is this PR still a draft? what are the steps needed to finish it up? Thanks :)

coppolaemilio avatar Nov 13 '23 11:11 coppolaemilio

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.

Piralein avatar Nov 14 '23 18:11 Piralein