Skip to content

unauthorized user should not see edit and delete icons for holidays list#162

Open
VitalikYaroviy wants to merge 3 commits into
masterfrom
icon-for-holidays-list
Open

unauthorized user should not see edit and delete icons for holidays list#162
VitalikYaroviy wants to merge 3 commits into
masterfrom
icon-for-holidays-list

Conversation

@VitalikYaroviy

Copy link
Copy Markdown
Collaborator

>
<i className="glyphicon glyphicon-pencil"></i>
</Link>
{cookie.load('token') ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

а якщо я руцями в куки захрінячу якийсь ліваковий токен?

import { destroy as destroyHolidayItem } from '../../../actions/holidays';
import { toaster } from '../../../actions/alerts';
import * as utils from '../../../utils';
import cookie from "react-cookie";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

чому подвійні лапки?

>
<i className="glyphicon glyphicon-pencil"></i>
</Link>
{(token && token === this.props.token) ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

не годиться
чому token?
чому не можна створити якийсь метод чи змінну authorized чи щось в цьому дусі?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants