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.
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
bc9f3dfa24
Коммит
8509c2f0b0
@@ -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) {
|
||||
|
||||
Ссылка в новой задаче
Block a user