MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / isAllowed

Function isAllowed

app/src/DataModel/Scripting/ScriptApiCall.cpp:122–128  ·  view source on GitHub ↗

* @brief Returns true when the method is in the safe allow-list or the full surface is opted in. */

Source from the content-addressed store, hash-verified

120 * @brief Returns true when the method is in the safe allow-list or the full surface is opted in.
121 */
122static bool isAllowed(const QString& method)
123{
124 if (s_allowFullSurface.load(std::memory_order_acquire))
125 return true;
126
127 return safeMethods().contains(method);
128}
129
130static std::mutex& bucketMutex()
131{

Callers 2

callMethod · 0.85
luaApiCallFunction · 0.85

Calls 2

loadMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected