Current ABP Project Configuration:
- Template: app
- Created ABP Studio Version: 1.2.2
- Current ABP Studio Version: 1.2.2
- Tiered: Yes
- Multi-Tenancy: No
- UI Framework: angular
- Theme: leptonx
- Theme Style: system
- Theme Menu Placement: top
- Run Install Libs: Yes
- Progressive Web App: No
- Run Progressive Web App Support: No
- Database Provider: ef
- Database Management System: sqlserver
- Separate Tenant Schema: No
- Create Initial Migration: Yes
- Run Db Migrator: Yes
- Mobile Framework: none
- Public Website: No
- Social Login: Yes
- Include Tests: Yes
- Kubernetes Configuration: Yes
- Distributed Event Bus: none
- Use Local References: No
- Optional Modules:
- TextTemplateManagement
- LanguageManagement
- AuditLogging
- OpenIddictAdmin
- Selected Languages:
Arabic, English
- Default Language: Arabic
- Create Command: abp new AbpSolution1 -t app --tiered --ui-framework angular --database-provider ef --database-management-system sqlserver --theme leptonx --without-cms-kit --sample-crud-page --dont-run-bundling --no-multi-tenancy -no-saas -no-gdpr -no-file-management
I’m working on a proof of concept (PoC) to introduce time-based permission grants in my ABP application. The idea is that permissions are active only within an optional time window—defined by StartTime and EndTime. If the current time is outside that window, the user should be denied access.
Extend permission grants to include optional StartTime and EndTime.
Deny permission if:
- Now is before StartTime (if set), or
- Now is after EndTime (if set).
- If neither is set, behave like standard ABP permissions (always valid).
it would be much appreciated if you provide full working POC code, angular, BE