Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
iruzevic committed Oct 9, 2024
1 parent 9eb6fe3 commit 5ec26cf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.

This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a CHANGELOG](https://keepachangelog.com/).

## [5.1.3]

### Fixed

- Do not show the form in the admin settings link if the user is missing cap.

## [5.1.2]

### Fixed
Expand Down Expand Up @@ -692,6 +698,7 @@ This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a

- Initial production release.

[5.1.3]: https://github.com/infinum/eightshift-forms/compare/5.1.2...5.1.3
[5.1.2]: https://github.com/infinum/eightshift-forms/compare/5.1.1...5.1.2
[5.1.1]: https://github.com/infinum/eightshift-forms/compare/5.1.0...5.1.1
[5.1.0]: https://github.com/infinum/eightshift-forms/compare/5.0.10...5.1.0
Expand Down
2 changes: 1 addition & 1 deletion eightshift-forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Description: Eightshift Forms is a complete form builder plugin that utilizes modern Block editor features with multiple third-party integrations, bringing your project to a new level.
* Author: WordPress team @Infinum
* Author URI: https://eightshift.com/
* Version: 5.1.2
* Version: 5.1.3
* Text Domain: eightshift-forms
*
* @package EightshiftForms
Expand Down
4 changes: 4 additions & 0 deletions src/AdminMenus/FormListingAdminSubMenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ protected function processAttributes($attr): array
*/
public function addCustomLinkIntoAppearanceMenu(): void
{
if (!\current_user_can(FormAdminMenu::ADMIN_MENU_CAPABILITY)) {
return;
}

global $submenu;

// phpcs:disable WordPress.WP.GlobalVariablesOverride.Prohibited
Expand Down

0 comments on commit 5ec26cf

Please sign in to comment.