/**
 * This function checks if an architect has permission to access a project based on their respective permission levels.
 *
 * @param architectPermission String, the permission level of the architect
 * @param projectPermission String, the permission level required to access the project
 * @return True if the architect has permission to access the project, False otherwise
 */
fun checkPermission(architectPermission: String, projectPermission: String): Boolean {

    return when (architectPermission) {
        "admin" -> true
        "manager" -> {
            when (projectPermission) {
                "admin", "manager" -> true
                "engineer" -> false
                else -> false
            }
        }
        "engineer" -> {
            when (projectPermission) {
                "engineer" -> true
                else -> false
            }
        }
        else -> false
    }
}
/**
 * This function checks if an architect has permission to access a project based on their respective permission levels.
 *
 * @param architectPermission String, the permission level of the architect
 * @param projectPermission String, the permission level required to access the project
 * @return True if the architect has permission to access the project, False otherwise
 */
fun checkPermission(architectPermission: String, projectPermission: String): Boolean {
/**
 * This function checks if an architect has permission to access a project based on their respective permission levels.
 *
 * @param architectPermission String, the permission level of the architect
 * @param projectPermission String, the permission level required to access the project
 * @return True if the architect has permission to access the project, False otherwise
 */
fun checkPermission(architectPermission: String, projectPermission: String): Boolean {

    return when (architectPermission) {
        "admin" -> true
        "manager" -> {
            when (projectPermission) {
                "admin", "manager" -> true
                "engineer" -> false
                else -> false
            }
        }
        "engineer" -> {
            when (projectPermission) {
                "engineer" -> true
                else -> false
            }
        }
        else -> false
    }
}