check_dir_perms fix return nil
parent
fe7852b524
commit
8c800b8596
|
@ -240,6 +240,8 @@ module Accounts
|
||||||
w = adv.AccessCheck(sd, token, "ACCESS_WRITE", gen_map, len, len, 4, 8)
|
w = adv.AccessCheck(sd, token, "ACCESS_WRITE", gen_map, len, len, 4, 8)
|
||||||
if !w["return"] then return nil end
|
if !w["return"] then return nil end
|
||||||
if w["GrantedAccess"] > 0 then result << "W" end
|
if w["GrantedAccess"] > 0 then result << "W" end
|
||||||
|
|
||||||
|
result
|
||||||
end
|
end
|
||||||
|
|
||||||
end # Accounts
|
end # Accounts
|
||||||
|
|
Loading…
Reference in New Issue