Full Mattermost server source with integrated Community Enterprise features. Includes vendor directory for offline/air-gapped builds. Structure: - enterprise-impl/: Enterprise feature implementations - enterprise-community/: Init files that register implementations - enterprise/: Bridge imports (community_imports.go) - vendor/: All dependencies for offline builds Build (online): go build ./cmd/mattermost Build (offline/air-gapped): go build -mod=vendor ./cmd/mattermost 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
19 lines
542 B
SQL
19 lines
542 B
SQL
DO $$
|
|
<<remove_upload_file_permission>>
|
|
DECLARE
|
|
rows_updated integer;
|
|
BEGIN
|
|
LOOP
|
|
WITH table_holder AS (
|
|
SELECT id FROM roles
|
|
WHERE permissions ~~ '%upload_file%' AND permissions !~ 'create_post($|\s)'
|
|
ORDER BY id ASC limit 100
|
|
)
|
|
|
|
UPDATE Roles r set permissions = REGEXP_REPLACE(permissions, 'upload_file($|\s)', '')
|
|
WHERE r.id in (SELECT id FROM table_holder);
|
|
GET DIAGNOSTICS rows_updated = ROW_COUNT;
|
|
EXIT WHEN rows_updated < 100;
|
|
END LOOP;
|
|
END remove_upload_file_permission $$;
|