MCPcopy
hub / github.com/pyload/pyload / setPermission

Method setPermission

module/database/UserDatabase.py:79–80  ·  view source on GitHub ↗
(db, user, perms)

Source from the content-addressed store, hash-verified

77
78 @style.async
79 def setPermission(db, user, perms):
80 db.c.execute("UPDATE users SET permission=? WHERE name=?", (perms, user))
81
82 @style.async
83 def setRole(db, user, role):

Callers 1

setUserPermissionMethod · 0.80

Calls 1

executeMethod · 0.80

Tested by

no test coverage detected