ssh_access.rb revision 775a1be9b58fbbbd15522fa0723d7b7b43c9bc8a
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