Skip to content

Comments

Change: move more functions to dedicated permissions files#2740

Merged
greenbonebot merged 3 commits intomainfrom
perm-files-2
Jan 29, 2026
Merged

Change: move more functions to dedicated permissions files#2740
greenbonebot merged 3 commits intomainfrom
perm-files-2

Conversation

@mattmundell
Copy link
Contributor

What

Move more permission functions out of manage_sql.c.

Why

Reducing the size of manage_sql.c. More consistent file organisation.

References

Follows /pull/2737

Testing

I ran GET_PERMISSIONs and compared the output with main and the PR:

o m m '<get_permissions filter="rows=300"/>' > /tmp/p-pr
o m m '<get_permissions filter="rows=300"/>' > /tmp/p-main
diff -u /tmp/p-pr /tmp/p-main

Also ran with the --optimize options.

@mattmundell mattmundell requested review from a team as code owners January 27, 2026 14:23
@greenbonebot greenbonebot enabled auto-merge (rebase) January 27, 2026 14:24
Required a tiny code change: add_feed_role_permissions calls
manage_resource_name(...) instead of the equivalent
resource_name(... LOCATION_TABLE).
@greenbonebot greenbonebot merged commit f2e9ce2 into main Jan 29, 2026
39 of 41 checks passed
@greenbonebot greenbonebot deleted the perm-files-2 branch January 29, 2026 08:32
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.

3 participants