summaryrefslogtreecommitdiff
path: root/indra/newview/llcommandhandler.cpp
diff options
context:
space:
mode:
authorMaxim Nikolenko <maximnproductengine@lindenlab.com>2026-10-07 18:19:58 +0300
committerGitHub <noreply@github.com>2026-10-07 18:19:58 +0300
commit616512a6e702d834ac23714fd4a39761eb5a8363 (patch)
tree73f559a805e9e1daafec08018c110488a5ff0819 /indra/newview/llcommandhandler.cpp
parent0a60806f8973c05b68cf65a5a01c41d81ff2da7b (diff)
parente23d7f7c8edc54e02fc446dd19cc687f9b991e27 (diff)
Merge pull request #6375 from secondlife/maxim/26.5-join-floater
Add Join floater for in-client sign up
Diffstat (limited to 'indra/newview/llcommandhandler.cpp')
-rw-r--r--indra/newview/llcommandhandler.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/indra/newview/llcommandhandler.cpp b/indra/newview/llcommandhandler.cpp
index 4038ae8002..1ccf578118 100644
--- a/indra/newview/llcommandhandler.cpp
+++ b/indra/newview/llcommandhandler.cpp
@@ -66,6 +66,7 @@ public:
LLMediaCtrl* web,
const std::string& nav_type,
bool trusted_browser);
+ bool isSensitive(const std::string& cmd) const;
private:
void notifySlurlBlocked();
@@ -170,6 +171,13 @@ bool LLCommandHandlerRegistry::dispatch(const std::string& cmd,
return info.mHandler->handle(params, query_map, grid, web);
}
+bool LLCommandHandlerRegistry::isSensitive(const std::string& cmd) const
+{
+ std::map<std::string, LLCommandHandlerInfo>::const_iterator it = mMap.find(cmd);
+ if (it == mMap.end() || !it->second.mHandler) return false;
+ return it->second.mHandler->isSensitive();
+}
+
void LLCommandHandlerRegistry::notifySlurlBlocked()
{
static bool slurl_blocked = false;
@@ -231,6 +239,12 @@ bool LLCommandDispatcher::dispatch(const std::string& cmd,
cmd, params, query_map, grid, web, nav_type, trusted_browser);
}
+// static
+bool LLCommandDispatcher::isSensitive(const std::string& cmd)
+{
+ return LLCommandHandlerRegistry::instance().isSensitive(cmd);
+}
+
static std::string lookup(LLCommandHandler::EUntrustedAccess value);
LLSD LLCommandDispatcher::enumerate()