Skip to content

Commit

Permalink
updated function
Browse files Browse the repository at this point in the history
  • Loading branch information
khrapko committed Dec 1, 2023
1 parent 2b34d11 commit 1c7fced
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ jobs:
env:
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_VERSION: '3.1.1'
SVN_VERSION: '3.1.2'
SVN_TEXT_COMMIT: 'wp function update'
2 changes: 1 addition & 1 deletion ImbaChatWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: 3.1 ImbaChat
* Plugin URI: https://wordpress.org/plugins/imbachat-widget/
* Description: This is free plugin for integration Wordpress CMS with chat service imbachat.com. It allows to add chat widget between users on your website for free.
* Version: 3.1.1
* Version: 3.1.2
* Author: Imbasynergy
* Author URI: https://imbachat.com/en/wordpress-chat
* License: GPLv2 or later
Expand Down
5 changes: 4 additions & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: paypal.me/TrapenokVictor
Tags: chat, community, chat room, embed chat, chat plugin, chat widget, buddypress, messages, private message, sweetdate chat plugin, WCFM chat plugin, live chat, group chat, member chat, private messaging system, floating chat widget, video conference, video call, webcam, webinar, video chat, videochat.
Requires at least: 4.6
Tested up to: 6.2
Stable tag: 3.1.1
Stable tag: 3.1.2
Requires PHP: 7.0
License: GPLv2 or later
License URI: http://www.apache.org/licenses/
Expand Down Expand Up @@ -83,6 +83,9 @@ Browsers require a secure connection (HTTPS) for accessing a deviceРІР‚в

== Changelog ==

= 3.1.2 =
* New feature: Updating function

= 3.1.1 =
* New feature: Updating function

Expand Down
1 change: 1 addition & 0 deletions includes/class/class-im-rest-filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public static function init_after_callbacks()
foreach ($api_filters as $key => $api_filter) {
add_filter( 'rest_request_before_callbacks', array(__CLASS__, 'imbachat_after_api_'.$key), 10, 3 );
}
add_filter( 'imbachat_permissions', array(__CLASS__, 'imbachat_after_api_get_users'), 10, 3 );
}

public static function imbachat_after_api_get_users($response, $handler, $request)
Expand Down
2 changes: 1 addition & 1 deletion view/script.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
$exit=true;
$user['user_id']=get_current_user_id();
$permi=apply_filters( 'rest_request_before_callbacks', $user, ['imbachat_callback' => 'get_users'], $_REQUEST );
$permi=apply_filters( 'imbachat_permissions', $user, ['imbachat_callback' => 'get_users'], $_REQUEST );
if (isset($permi["permissions"]["available_chat"]) && (int)$permi["permissions"]["available_chat"] == 0) $exit=false;
?>
<?php if ($exit) : ?>
Expand Down

0 comments on commit 1c7fced

Please sign in to comment.