/** * Get whether users belonging to the given role are allowed to read this object. Even if this * returns false, the role may still be able to read it if a parent role has read access. The role * must already be saved on the server and its data must have been fetched in order to use this * method. * * @param role The role to check for access. * @return true if the role has read access. false otherwise. */ public boolean getRoleReadAccess(AVRole role) { String r = roleName(role.getName()); return getRoleReadAccess(r); }
/** * Get whether users belonging to the given role are allowed to read this object. Even if this * returns false, the role may still be able to read it if a parent role has read access. The role * must already be saved on the server and its data must have been fetched in order to use this * method. * * @param role The role to check for access. * @return true if the role has read access. false otherwise. */ public boolean getRoleReadAccess(AVRole role) { String r = roleName(role.getName()); return getRoleReadAccess(r); }