mirror of
https://github.com/Dadoum/anisette-v3-server.git
synced 2024-11-21 10:56:08 +00:00
Merge pull request #25 from kabiroberai/kabir/fix-perms
Fix permission issues
This commit is contained in:
commit
a808d2977c
@ -420,13 +420,13 @@ class AnisetteService {
|
||||
|
||||
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 = [
|
||||
"result": "ProvisioningSuccess",
|
||||
"adi_pb": Base64.encode(
|
||||
cast(ubyte[]) file.read(
|
||||
adi.provisioningPath()
|
||||
.buildPath("adi.pb")
|
||||
)
|
||||
cast(ubyte[]) file.read(adiPath)
|
||||
)
|
||||
];
|
||||
} catch (Exception ex) {
|
||||
|
Loading…
Reference in New Issue
Block a user