Page MenuHomePhabricator

[lib][web] Extract logic checking add users permissions
ClosedPublic

Authored by inka on Tue, Jun 4, 2:03 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jun 24, 3:58 PM
Unknown Object (File)
Fri, Jun 21, 6:23 PM
Unknown Object (File)
Fri, Jun 21, 6:26 AM
Unknown Object (File)
Thu, Jun 20, 9:08 AM
Unknown Object (File)
Thu, Jun 20, 4:44 AM
Unknown Object (File)
Mon, Jun 17, 10:24 AM
Unknown Object (File)
Mon, Jun 10, 9:51 PM
Unknown Object (File)
Mon, Jun 10, 9:00 PM
Subscribers

Details

Summary

This can be reused on native

Test Plan

tested that in members modal the "Add members" button is displayed when it is supposed to and navigates to proper modals

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

inka requested review of this revision.Tue, Jun 4, 2:19 AM
tomek added inline comments.
lib/permissions/add-users-permissions.js
11 ↗(On Diff #40926)

How about renaming it to AddUsersPermissions?

18 ↗(On Diff #40926)

I'm not sure if this name is good, because this hook returns more than just the permissions, but I don't have any better alternative.

This revision is now accepted and ready to land.Tue, Jun 4, 2:45 AM

Rename type

lib/permissions/add-users-permissions.js
18 ↗(On Diff #40926)

I'm not 100% happy with it either, but I couldn't come up with anything better