Skip to content

Commit

Permalink
Lifting some restrictions:
Browse files Browse the repository at this point in the history
There is some need for regular users to move nodes up
  • Loading branch information
nobry committed Nov 13, 2015
1 parent 3df207d commit 44986c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/com/portfolio/data/provider/MysqlDataProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -7288,8 +7288,8 @@ public Object postCopyNode( Connection c, MimeType inMimeType, String destUuid,
@Override
public int postMoveNodeUp( Connection c, int userid, String uuid )
{
if(!cred.isAdmin(c, userid) && !cred.isDesigner(c, userid, uuid) )
throw new RestWebApplicationException(Status.FORBIDDEN, "No admin right");
// if(!cred.isAdmin(c, userid) && !cred.isDesigner(c, userid, uuid) )
// throw new RestWebApplicationException(Status.FORBIDDEN, "No admin right");

String sql = "";
PreparedStatement st;
Expand Down

0 comments on commit 44986c2

Please sign in to comment.