Permalink
Browse files

feat(Recipes): Recipe developers don't need Premium Supporter Account…

… for debugging

Closes #23
  • Loading branch information...
adlk committed Nov 3, 2017
1 parent a54c87b commit 7a9947a08e6acd922787d866ba2ba6fc5a779f82
Showing with 1 addition and 5 deletions.
  1. +1 −5 src/components/settings/services/EditServiceForm.js
@@ -69,10 +69,6 @@ const messages = defineMessages({
export default class EditServiceForm extends Component {
static propTypes = {
recipe: PropTypes.instanceOf(Recipe).isRequired,
// service: PropTypes.oneOfType([
// PropTypes.object,
// PropTypes.instanceOf(Service),
// ]),
service(props, propName) {
if (props.action === 'edit' && !(props[propName] instanceof Service)) {
return new Error(`'${propName}'' is expected to be of type 'Service'
@@ -207,7 +203,7 @@ export default class EditServiceForm extends Component {
)}
{recipe.hasCustomUrl && (
<TabItem title={intl.formatMessage(messages.tabOnPremise)}>
{user.isPremium ? (
{user.isPremium || recipe.author.find(a => a.email === user.email) ? (
<div>
<Input field={form.$('customUrl')} />
{form.error === 'url-validation-error' && (

0 comments on commit 7a9947a

Please sign in to comment.