8000 Merge pull request #137 from giastfader/master · githubcs/baasbox@140859c · GitHub
[go: up one dir, main page]

Skip to content

Commit 140859c

Browse files
committed
Merge pull request baasbox#137 from giastfader/master
fixed baasbox#136
2 parents 3d4a98e + cac8757 commit 140859c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/com/baasbox/dao/FileAssetDao.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public ODocument create(String name, String fileName, String contentType, byte[]
5757
asset.field("contentType",contentType);
5858
asset.field("contentLength",content.length);
5959
super.grantPermission(asset, Permissions.ALLOW_READ,DefaultRoles.getORoles());
60-
super.grantPermission(asset, Permissions.ALLOW_UPDATE,DefaultRoles.getORoles());
60+
super.grantPermission(asset, Permissions.ALLOW_UPDATE,DefaultRoles.getORoles()); //this is necessary due the resize API
6161
return asset;
6262
}
6363

app/com/baasbox/db/DbHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ public static void setupDb(OGraphDatabase db) throws Exception{
439439
public static void exportData(String appcode,OutputStream os) throws UnableToExportDbException{
440440
OGraphDatabase db = null;
441441
try{
442-
db = open(appcode, "admin", "admin");
442+
db = open(appcode, BBConfiguration.getBaasBoxAdminUsername(), BBConfiguration.getBaasBoxAdminPassword());
443443

444444
ODatabaseExport oe = new ODatabaseExport(db, os, new OCommandOutputListener() {
445445
@Override

0 commit comments

Comments
 (0)
0