Skip to content

Conversation

@Rom1-B
Copy link
Contributor

@Rom1-B Rom1-B commented May 2, 2025

Session::checkLoginUser();

@Rom1-B Rom1-B requested a review from stonebuzz May 2, 2025 10:42
*/

require '../../../inc/includes.php';
Session::checkLoginUser();
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Session::checkLoginUser();
Session::checkLoginUser();
Session::checkRight(PluginDatainjectionClientInjection::$rightname, READ);

*/

require '../../../inc/includes.php';
Session::checkLoginUser();
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Session::checkLoginUser();
Session::checkLoginUser();
Session::checkRight(PluginDatainjectionClientInjection::$rightname, READ);

Session::checkLoginUser();

/* Update mappings */
if (isset($_POST["update"])) {
Copy link
Contributor

Choose a reason for hiding this comment

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

we need to add this check here

Session::haveRight('plugin_datainjection_model', UPDATE)

@stonebuzz stonebuzz merged commit a00140b into pluginsGLPI:main May 5, 2025
3 checks passed
@Rom1-B Rom1-B deleted the front_check branch May 5, 2025 09:52
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