yogiben / meteor-admin

A complete admin dashboard solution
https://atmospherejs.com/yogiben/admin
GNU General Public License v3.0
827 stars 261 forks source link

Can NOT access /admin #279

Closed emiviada closed 8 years ago

emiviada commented 8 years ago

When I go to /admin I receive the 'You need to be an admin to view this page' message and in the console I see the below error stacktrace:

Exception in template helper: ReferenceError: Match is not defined at Object.Roles._uiHelpers.isInRole (http://localhost:3000/packages/alanning_roles.js?0f20b892d4a0a11a6ea8431da3d0a0953ba951a9:809:10) at bindDataContext (http://localhost:3000/packages/blaze.js?695c7798b7f4eebed3f8ce0cbb17c21748ff8ba8:2994:16) at Blaze._wrapCatchingExceptions (http://localhost:3000/packages/blaze.js?695c7798b7f4eebed3f8ce0cbb17c21748ff8ba8:1658:16) at http://localhost:3000/packages/blaze.js?695c7798b7f4eebed3f8ce0cbb17c21748ff8ba8:3046:66 at Function.Template._withTemplateInstanceFunc (http://localhost:3000/packages/blaze.js?695c7798b7f4eebed3f8ce0cbb17c21748ff8ba8:3679:12) at wrapHelper (http://localhost:3000/packages/blaze.js?695c7798b7f4eebed3f8ce0cbb17c21748ff8ba8:3045:27) at Spacebars.call (http://localhost:3000/packages/spacebars.js?3eafdd2d5d5d8f08431aa842df4b5e8142600b17:175:18) at Spacebars.mustacheImpl (http://localhost:3000/packages/spacebars.js?3eafdd2d5d5d8f08431aa842df4b5e8142600b17:112:25) at Object.Spacebars.dataMustache (http://localhost:3000/packages/spacebars.js?3eafdd2d5d5d8f08431aa842df4b5e8142600b17:144:39) at Template.AdminLayout.Blaze.If.Blaze.If.HTML.DIV.class (http://localhost:3000/packages/yogiben_admin.js?ee7caf095df475783863918a98e68ddeb03c2b4e:1224:24)

emiviada commented 8 years ago

I've figured it out that the 'check' package was missing in my environment. Should not be this package a prerequisite for meteor-admin? Running: meteor add check solves the problem.

markshust commented 8 years ago

This ticket should be reopened -- this is a bug, as check is not a dependency on this admin package