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, the invite extrinsic is not encapsulated in a helper function, meaning that only users with admin permissions can invite other users to the system. We want to create a helper function called do_invite that encapsulates the invite extrinsic and can be used by any user, regardless of their permissions.
Why
By encapsulating the invite extrinsic in a helper function, we will make it easier for users to invite others to the system, which can improve user adoption and engagement. Additionally, this will make the codebase more modular and easier to maintain in the long term.
Changes
Create a new helper function called do_invited that encapsulates the invite extrinsic
Update the codebase to use do_invited instead of calling the invite extrinsic directly
Call that function in Afloat when a user signs in
Impact
Users without admin permissions will be able to invite others to the system
The codebase will be more modular and easier to maintain in the long term
There may be minor performance implications due to the added layer of abstraction, but this is not expected to be significant
Additional Notes
It is important to ensure that the new do_invited function follows best practices for security and data privacy to prevent unauthorized access to the system.
This change may require updating documentation or user-facing materials to reflect the new process for inviting others to the system.
The text was updated successfully, but these errors were encountered:
Description
Currently, the invite extrinsic is not encapsulated in a helper function, meaning that only users with admin permissions can invite other users to the system. We want to create a helper function called do_invite that encapsulates the invite extrinsic and can be used by any user, regardless of their permissions.
Why
By encapsulating the invite extrinsic in a helper function, we will make it easier for users to invite others to the system, which can improve user adoption and engagement. Additionally, this will make the codebase more modular and easier to maintain in the long term.
Changes
Impact
Users without admin permissions will be able to invite others to the system
The codebase will be more modular and easier to maintain in the long term
There may be minor performance implications due to the added layer of abstraction, but this is not expected to be significant
Additional Notes
It is important to ensure that the new do_invited function follows best practices for security and data privacy to prevent unauthorized access to the system.
This change may require updating documentation or user-facing materials to reflect the new process for inviting others to the system.
The text was updated successfully, but these errors were encountered: