Skip to content

Commit

Permalink
feat(Recipes): Recipe developers don't need Premium Supporter Account…
Browse files Browse the repository at this point in the history
… for debugging

Closes #23
  • Loading branch information
adlk committed Nov 3, 2017
1 parent a54c87b commit 7a9947a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/components/settings/services/EditServiceForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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' && (
Expand Down

0 comments on commit 7a9947a

Please sign in to comment.