Redmind commited on
Commit
82fa7cb
·
verified ·
1 Parent(s): 054eb85

Update templates/company_profile.html

Browse files
Files changed (1) hide show
  1. templates/company_profile.html +3 -7
templates/company_profile.html CHANGED
@@ -264,13 +264,9 @@
264
  document.addEventListener('DOMContentLoaded', function () {
265
 
266
  const role = sessionStorage.getItem('userRole');
267
- console.log('Current role:', role); // Debug statement to check the role
268
-
269
- if (role === 'admin') {
270
- document.getElementById('add').style.display = 'block';
271
- } else {
272
- document.getElementById('add').style.display = 'none';
273
- }
274
  fetchCompanies();
275
  });
276
  window.addEventListener('pageshow', function (event) {
 
264
  document.addEventListener('DOMContentLoaded', function () {
265
 
266
  const role = sessionStorage.getItem('userRole');
267
+ console.log('Current role:', role); // Debug statement to chec
268
+ document.getElementById('add').style.display = 'block';
269
+
 
 
 
 
270
  fetchCompanies();
271
  });
272
  window.addEventListener('pageshow', function (event) {