Skip to content

feat(core): show group restrictions in occ app:list - #64290

Open
GnarlyLion wants to merge 1 commit into
nextcloud:masterfrom
GnarlyLion:fix/occ-app-list-show-groups
Open

GnarlyLion wants to merge 1 commit into
nextcloud:masterfrom
GnarlyLion:fix/occ-app-list-show-groups

Conversation

@GnarlyLion

Copy link
Copy Markdown

Closes #61376

Summary

occ app:list now also shows which groups an app is restricted to, when it's been enabled for specific groups instead of everyone

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI
    Claude Code helped write the implementation and test; I reviewed the diff and tested it manually on my own Nextcloud instance.
    Assisted-by: ClaudeCode:claude-sonnet-5

Assisted-by: ClaudeCode:claude-sonnet-5
Signed-off-by: GnarlyLion <99709325+GnarlyLion@users.noreply.github.com>
@GnarlyLion
GnarlyLion requested a review from a team as a code owner September 13, 2026 16:26
@GnarlyLion
GnarlyLion requested review from icewind1991, leftybournes, provokateurin and salmart-dev and removed request for a team September 13, 2026 16:26
foreach ($enabledApps as $app) {
$apps['enabled'][$app] = $versions[$app] ?? true;
$groups = $this->appManager->getAppRestriction($app);
if (!empty($groups)) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
if (!empty($groups)) {
if ($groups !== []) {

$groups = $this->appManager->getAppRestriction($app);
if (!empty($groups)) {
$apps['enabled'][$app] = [
'version' => $versions[$app] ?? true,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hard fail if the version is missing, because it means something is seriously wrong.

'groups' => $groups,
];
} else {
$apps['enabled'][$app] = $versions[$app] ?? true;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This should have the same format as above.

@github-actions

Copy link
Copy Markdown
Contributor

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Display the enabled groups for an app when occ command to list apps is used

2 participants