PLT-5080 (WebApp): Channel Admin permission level. (#5047)

* PLT-5080 (WebApp): Channel Admin permission level.

For channel management and channel deletion.

* Fix some incorrect showing/hiding of options.

* Remove incorrect client calls that was overwriting my channel members.
Этот коммит содержится в:
George Goldberg
2017-02-24 01:15:10 +00:00
коммит произвёл Christopher Speller
родитель bc9f3dfa24
Коммит 8509c2f0b0
8 изменённых файлов: 40 добавлений и 11 удалений

Просмотреть файл

@@ -132,7 +132,6 @@ export function makeUserChannelAdmin(channelId, userId, success, error) {
userId,
'channel_user channel_admin',
() => {
AsyncClient.getChannelMember(channelId, userId);
getChannelMembersForUserIds(channelId, [userId]);
if (success) {
@@ -153,7 +152,6 @@ export function makeUserChannelMember(channelId, userId, success, error) {
userId,
'channel_user',
() => {
AsyncClient.getChannelMember(channelId, userId);
getChannelMembersForUserIds(channelId, [userId]);
if (success) {