Hello, In a previous post you directed me to an article on how to extend a Tenant or any existing entity with additional properties or fields. I have a requirement where I need to add a Region property for each Tenant. Then, when a user logs in on the host, he/she will be given access to all Tenants having a certain Region property. Can you please guide me on how to implement such thing with the multitenancy Abp?
At first, I thought of the following: 1- Add a Region property to each Tenant. This will be a 1-to-many relationship, as a Region can have 1 or more Tenant, while a Tenant can only have 1 single Tenant. 2- Create a Role per Region at the Host-side 3- Add users to roles, and hence, based on role name I get to know all Tenants under that role.
I still believe I should make use of Permissions somewhere, but not sure how and where.
I appreciate your feedback.
Thank you Bilal
I totally understand. There is even an older email if possible to check it also whenever you have time.
Thanks a lot
I totally understand. There is even an older email if possible to check it also whenever you have time.
Thanks a lot
I went into more issues with Datepicker, moment and saving/loading data from server. I developed a small and handy directive to handle validation and format issues I'll share it here if allowed and when I have access to PC as I'm on mobile now.
Thanks everyone.
Well, There is something wrong going on here.
I have Host-Level entities that is data shared across all tenants.
The following is defined for permissions on one of those entities:
[AbpAuthorize(SmsPermissions.Pages_HOSTREFDATA_ENTITY, SmsPermissions.Pages_REFDATA_GLOBAL, RequireAllPermissions = false)]
The Host Admin is given Pages_HOSTREFDATA_ENTITY (This permission defined on Host level). The Tenant Admin is given Pages_REFDATA_GLOBAL (This permission is defined on Tenant level).
Now, when I log in with Tenant Admin and using SetTenantId(null), I get an exception saying at least one of the above 2 permissions are required.
How come?
Hi Ismail, I sent you the email last week. Whenever you have time to check it pls.
Thanks
I found that best option to validate Kendo UI DatePicker is to use a custom directive. Have a look here: <a class="postlink" href="http://codepen.io/bilalhaidar/pen/RpXYJd">http://codepen.io/bilalhaidar/pen/RpXYJd</a>
Thanks
Never. I even tried to contact their support and they didn't help. I switched to kendo ui datepicker and working smooth.