Spaces:
Runtime error
Runtime error
Update templates/company_profile.html
Browse files263 unmodified lines264265266267268269270271272273267268269270271272263 unmodified lines document.addEventListener('DOMContentLoaded', function () {
const role = sessionStorage.getItem('userRole'); console.log('Current role:', role); // Debug statement to check the role
if (role === 'admin') { document.getElementById('add').style.display = 'block'; } else { document.getElementById('add').style.display = 'none'; } console.log('Current role:', role); // Debug statement to chec document.getElementById('add').style.display = 'block'; fetchCompanies(); }); window.addEventListener('pageshow', function (event) {templates/company_profile.html+3-7