mirror of
https://github.com/Dadoum/anisette-v3-server.git
synced 2024-11-21 19:06:07 +00:00
Fix permission issues
This commit is contained in:
parent
53d5203313
commit
d65041b1e4
@ -420,13 +420,13 @@ class AnisetteService {
|
|||||||
|
|
||||||
adi.endProvisioning(session, Base64.decode(ptm), Base64.decode(tk));
|
adi.endProvisioning(session, Base64.decode(ptm), Base64.decode(tk));
|
||||||
|
|
||||||
|
auto adiPath = adi.provisioningPath().buildPath("adi.pb");
|
||||||
|
file.setAttributes(adiPath, 384); // 0600 = rw for owner
|
||||||
|
|
||||||
response = [
|
response = [
|
||||||
"result": "ProvisioningSuccess",
|
"result": "ProvisioningSuccess",
|
||||||
"adi_pb": Base64.encode(
|
"adi_pb": Base64.encode(
|
||||||
cast(ubyte[]) file.read(
|
cast(ubyte[]) file.read(adiPath)
|
||||||
adi.provisioningPath()
|
|
||||||
.buildPath("adi.pb")
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
];
|
];
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
|
Loading…
Reference in New Issue
Block a user