Commit 4ea80aa5 authored by Robert Ricci's avatar Robert Ricci

Don't do the permissions check if running as root.

parent ecdd011f
......@@ -66,7 +66,7 @@ if (!@motes) {
#
# Permission check
#
if (!TBNodeAccessCheck($UID,TB_NODEACCESS_LOADIMAGE,@motes)) {
if ($UID && !TBNodeAccessCheck($UID,TB_NODEACCESS_LOADIMAGE,@motes)) {
die "You do not have permission to modify one or more nodes\n";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment