MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / require_admin

Function require_admin

Scripts/ButSystem.py:3662–3675  ·  view source on GitHub ↗

require_admin. Admin-only route handler. This docstring was expanded to make future maintenance easier. Returns: Varies.

()

Source from the content-addressed store, hash-verified

3660 shutil.copyfileobj(file_storage.stream, out, length=bufsize)
3661
3662def human_size(n: int) -> str:
3663 """human_size.
3664
3665Internal helper function.
3666
3667This docstring was added automatically to improve maintainability.
3668
3669Args:
3670 n: Parameter.
3671
3672Returns:
3673 Varies.
3674"""
3675 units = ["B", "KB", "MB", "GB", "TB"]
3676 x = float(n)
3677 for u in units:
3678 if x < 1024.0 or u == units[-1]:

Callers 15

admin_panelFunction · 0.70
admin_logsFunction · 0.70
admin_device_approveFunction · 0.70
admin_device_denyFunction · 0.70
admin_promoteFunction · 0.70
admin_demoteFunction · 0.70
admin_kick_userFunction · 0.70
admin_delete_userFunction · 0.70
admin_delete_meFunction · 0.70
admin_self_destructFunction · 0.70
bountyFunction · 0.70

Calls 2

user_is_adminFunction · 0.70
current_userFunction · 0.70

Tested by

no test coverage detected