You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently everyone can see the module. As this module is only required for devs and a dev will most likely have admin access, I'd suggest to limit the visibility to admin-users.
Fore sure there's probably use-cases where devs aren't admin, but that's probably less often the case than non-devs that see the module.
Not 100% sure about the implementation, but it should be possible to fetch the user before the export and then set the visibility based on the users role
I think there is an even easier way to do this. There is a more or less undocumented method that checks if the current user should be able to use the extension: 950d8b3
Currently everyone can see the module. As this module is only required for devs and a dev will most likely have admin access, I'd suggest to limit the visibility to admin-users.
Fore sure there's probably use-cases where devs aren't admin, but that's probably less often the case than non-devs that see the module.
Not 100% sure about the implementation, but it should be possible to fetch the user before the export and then set the visibility based on the users role
directus-extension-generate-types/src/index.ts
Line 40 in 4acb6f0
The text was updated successfully, but these errors were encountered: