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 }
Check if a user can modify an object . If there s no user principal found this returns true .