ssh_access.rb revision f198c0ec200763fe1b0db998cd9418f412be8361
PERMISSIONS = %w(
read
)
PERMISSION_MAP = {
everyone: {
'public_r' => %w(read),
'private_r' => %w(),
'private_rw' => %w(),
},
permission: {
all: {
'public_r' => %w(read),
'private_r' => %w(read),
},
}
}
end
end
end
end
end
true
end
end
end
end
!! PERMISSION_MAP[:permission][role].try(:include?, requested_permission)
end
end