mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-05 21:05:46 +01:00
fix further minor issues in cloudlinux
This commit is contained in:
@@ -2,10 +2,15 @@
|
||||
import getpass
|
||||
|
||||
def main():
|
||||
import pwd
|
||||
if getpass.getuser() == 'root':
|
||||
userType = "admin"
|
||||
else:
|
||||
userType = "user"
|
||||
try:
|
||||
uid = pwd.getpwnam(getpass.getuser()).pw_uid
|
||||
userType = 'reseller'
|
||||
except:
|
||||
userType = 'user'
|
||||
|
||||
data = """{
|
||||
"userName": "%s",
|
||||
|
||||
Reference in New Issue
Block a user