public static boolean checkIfUserCanModifyObject(App app, ParaObject object) {
		User user = SecurityUtils.getAuthenticatedUser();
		if (user != null && app != null && object != null) {
			if (app.permissionsContainOwnKeyword(user, object)) {
				return user.canModify(object);
			}
		}
		return true; // skip
	}
public static boolean checkIfUserCanModifyObject ( App app , ParaObject object ) { User user = SecurityUtils . getAuthenticatedUser ( ) ; if ( user != null && app != null && object != null ) { if ( app . permissionsContainOwnKeyword ( user , object ) ) { return user . canModify ( object ) ; } } return true ; }
Check if a user can modify an object. If there's no user principal found, this returns true.

@param app app in context
@param object some object
@return true if user is the owner/creator of the object.