ytorg/Yotter

Allow admins to remove restrictions

Open

#29 geöffnet am 6. Sept. 2020

Auf GitHub ansehen
 (4 Kommentare) (1 Reaktion) (0 zugewiesene Personen)Python (36 Forks)batch import
enhancementgood first issueimportant

Repository-Metriken

Stars
 (467 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

As for what's explained here we should try to make the app work even if there's no authenticated user.

It can easily be done using the user.is_authenticated method and Jinja2 if/else statements.

(See the ones that are resolved for reference) When the config option restrictPublicUsage is False and the user is NOT logged in, this pages need:

  • ytsearch.html ⇾ Don't show follow/unfollow when not logged in.
  • channel.html ⇾ Don't show follow/unfollow when not logged in.
  • search.html ⇾ I think nothing is required. Test.
  • user.html ⇾ Don't show follow/unfollow when not logged in.
  • base.html ⇾ Show ONLY AVAILABLE routes on menu when restrictions are disabled.

Contributor Guide