PhlexPlexico / get5-web

[END OF LIFE] Webpanel for servers using the get5 CS:GO server plugin
GNU General Public License v3.0
21 stars 10 forks source link

[BUG] No Access to Logo Upload. (Create Team) #149

Closed mrc4tt closed 4 years ago

mrc4tt commented 4 years ago

Describe the bug No access to/can't see "Upload Logo" under create a team as "is_admin OR super_admin"

Which Build happening on the master build.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'http://get5.lindhost.eu/'
  2. Click on 'Sign on Steam'
  3. Go to Teams > Create a Team
  4. See error

Expected behavior I can't see "Upload Logo", seems it's invisible (no AdBlock) tested on edge on a second account.

Additional context get5web

PhlexPlexico commented 4 years ago

Are you listed both as an admin and super admin in your config?

mrc4tt commented 4 years ago

Are you listed both as an admin and super admin in your config?

@PhlexPlexico Yep. both and tested with "Admin" and with "super admin"

Still no "Logo Upload" :'(

PhlexPlexico commented 4 years ago

Try with just one, and paste your portion of the config here. It's still working on my instance and I can see it just fine.

mrc4tt commented 4 years ago

Nope. ;( nothing here.

PhlexPlexico commented 4 years ago

What do you mean nothing? I need to see the values of your Config, specifically these values only: SUPER_ADMIN_IDS = [] ADMIN_IDS = []

mrc4tt commented 4 years ago
ADMIN_IDS = [76561198383180718]
SUPER_ADMIN_IDS = []

I did too tried with this:

ADMIN_IDS = []
SUPER_ADMIN_IDS = [76561198383180718]
PhlexPlexico commented 4 years ago

Don't use integers, they're strings. Try surrounding in quotes.

SUPER_ADMIN_IDS = ["76561198383180718"]

mrc4tt commented 4 years ago

Don't use integers, they're strings. Try surrounding in quotes.

SUPER_ADMIN_IDS = ["76561198383180718"]

Cool, it works. just weird. why "" is removed on prod config ;/

PhlexPlexico commented 4 years ago

Because prod config is meant to be empty. The application can run without any admins or intervention from that file.

mrc4tt commented 4 years ago

I see. ;) //fixed.